Skip to content

Commit

Permalink
❄️ fix for climate state (#2376)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Feb 19, 2025
1 parent 6aa493b commit 982c6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def set_state(self, data: dict):
self._attr_is_on = val
if val in [False, 0]:
self._attr_hvac_mode = HVACMode.OFF
elif self._attr_hvac_mode in [None, HVACMode.OFF]:
elif val and self._attr_hvac_mode in [None, HVACMode.OFF]:
self._attr_hvac_mode = HVACMode.AUTO
self._attr_state = self._attr_hvac_mode

Expand Down

0 comments on commit 982c6e6

Please sign in to comment.