From 4f8200d15a60fb0ea8a3695863e048cbc0a776e6 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Tue, 3 Dec 2019 21:54:25 +0100 Subject: [PATCH] Ignore state of climate entities in prometheus (#29346) --- homeassistant/components/prometheus/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/homeassistant/components/prometheus/__init__.py b/homeassistant/components/prometheus/__init__.py index 8eeb9325bc0..71d56cda18a 100644 --- a/homeassistant/components/prometheus/__init__.py +++ b/homeassistant/components/prometheus/__init__.py @@ -284,15 +284,6 @@ class PrometheusMetrics: ) metric.labels(**self._labels(state)).set(current_temp) - metric = self._metric( - "climate_state", self.prometheus_cli.Gauge, "State of the thermostat (0/1)" - ) - try: - value = self.state_as_number(state) - metric.labels(**self._labels(state)).set(value) - except ValueError: - pass - def _handle_sensor(self, state): unit = self._unit_string(state.attributes.get(ATTR_UNIT_OF_MEASUREMENT))