From 0310615402602564688ed1811dab4f78292504d4 Mon Sep 17 00:00:00 2001 From: MapoDan <42698485+MapoDan@users.noreply.github.com> Date: Sat, 19 Dec 2020 12:18:20 +0100 Subject: [PATCH] Update climate.py --- custom_components/programmable_thermostat/climate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/programmable_thermostat/climate.py b/custom_components/programmable_thermostat/climate.py index f9400fd..054090d 100644 --- a/custom_components/programmable_thermostat/climate.py +++ b/custom_components/programmable_thermostat/climate.py @@ -220,6 +220,7 @@ async def control_system_mode(self): await self._async_turn_off(mode="heat", forced=True) if opmod is HVAC_MODE_COOL: await self._async_turn_off(mode="cool", forced=True) + self._hvac_action = CURRENT_HVAC_OFF elif self._hvac_mode == HVAC_MODE_HEAT: _LOGGER.debug("set to heat") await self._async_control_thermo(mode="heat")