Skip to content

Commit

Permalink
Fix for Reboot Shows climate as offline
Browse files Browse the repository at this point in the history
Fix for #165 and #152
  • Loading branch information
hristo-atanasov authored Dec 30, 2024
1 parent 4439373 commit 1e4d9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tasmota_irhvac/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def regist_track_state_change_event(entity_id):
self._attr_hvac_mode = (
HVACMode.OFF
if old_state.state in [STATE_UNKNOWN, STATE_UNAVAILABLE]
else HVACMode.OFF # old_state.state
else old_state.state
)
self._enabled = self._attr_hvac_mode != HVACMode.OFF
if self._enabled:
Expand Down

0 comments on commit 1e4d9db

Please sign in to comment.