Kaynağa Gözat

Fixed typo (#764)

Konstantin 5 yıl önce
ebeveyn
işleme
489c0d3735
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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):
         """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)