Skip to content

Commit

Permalink
Fix current temperature (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Sep 4, 2024
1 parent 5b2db3c commit 944c758
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/qubino_wire_pilot/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
CONF_NAME,
CONF_UNIQUE_ID,
EVENT_HOMEASSISTANT_START,
SERVICE_TURN_OFF,
SERVICE_TURN_ON,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
UnitOfTemperature,
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 944c758

Please sign in to comment.