From 1e4d9db7c1f10820c9ffac1f0353830cac6b4110 Mon Sep 17 00:00:00 2001 From: Hristo Atanasov Date: Mon, 30 Dec 2024 23:00:29 +0200 Subject: [PATCH] Fix for Reboot Shows climate as offline Fix for #165 and #152 --- custom_components/tasmota_irhvac/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/tasmota_irhvac/climate.py b/custom_components/tasmota_irhvac/climate.py index ec554c6..4a15b85 100644 --- a/custom_components/tasmota_irhvac/climate.py +++ b/custom_components/tasmota_irhvac/climate.py @@ -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: