Konstantin 5 лет назад
Родитель
Сommit
489c0d3735
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      custom_components/smartir/climate.py

+ 2 - 2
custom_components/smartir/climate.py

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