From 944c758b3304d4958b84fd6a30760001ee220217 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 4 Sep 2024 12:30:50 +0200 Subject: [PATCH] Fix current temperature (#19) --- custom_components/qubino_wire_pilot/climate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/qubino_wire_pilot/climate.py b/custom_components/qubino_wire_pilot/climate.py index 2bc08d4..5ded36d 100644 --- a/custom_components/qubino_wire_pilot/climate.py +++ b/custom_components/qubino_wire_pilot/climate.py @@ -26,8 +26,6 @@ CONF_NAME, CONF_UNIQUE_ID, EVENT_HOMEASSISTANT_START, - SERVICE_TURN_OFF, - SERVICE_TURN_ON, STATE_UNAVAILABLE, STATE_UNKNOWN, UnitOfTemperature, @@ -362,7 +360,7 @@ def _async_update_temp(self, state: State): cur_temp = float(state.state) if not math.isfinite(cur_temp): raise ValueError(f"Sensor has illegal state {state.state}") - self._cur_temp = cur_temp + self._cur_temperature = cur_temp except ValueError as ex: _LOGGER.error("Unable to update from temperature sensor: %s", ex)