|
|
@@ -423,7 +423,7 @@ class SmartIRClimate(ClimateEntity, RestoreEntity):
|
|
|
def _async_update_temp(self, state):
|
|
|
"""Update thermostat with latest state from temperature sensor."""
|
|
|
try:
|
|
|
- if state.state != STATE_UNKNOWN and state.statre != STATE_UNAVAILABLE:
|
|
|
+ if state.state != STATE_UNKNOWN and state.state != STATE_UNAVAILABLE:
|
|
|
self._current_temperature = float(state.state)
|
|
|
except ValueError as ex:
|
|
|
_LOGGER.error("Unable to update from temperature sensor: %s", ex)
|
|
|
@@ -435,4 +435,4 @@ class SmartIRClimate(ClimateEntity, RestoreEntity):
|
|
|
if state.state != STATE_UNKNOWN and state.state != STATE_UNAVAILABLE:
|
|
|
self._current_humidity = float(state.state)
|
|
|
except ValueError as ex:
|
|
|
- _LOGGER.error("Unable to update from humidity sensor: %s", ex)
|
|
|
+ _LOGGER.error("Unable to update from humidity sensor: %s", ex)
|