Skip to content

Commit

Permalink
Issue #846 - swicth Eco preset after Window close event
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marc Collin committed Jan 25, 2025
1 parent 8cf09e5 commit e3ff6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/versatile_thermostat/base_thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ def save_state():
self._hvac_mode in [HVACMode.COOL, HVACMode.HEAT, HVACMode.HEAT_COOL]
and self.preset_mode != PRESET_NONE
):
if self.preset_mode != PRESET_FROST_PROTECTION:
if self.preset_mode != PRESET_FROST_PROTECTION or self._hvac_mode in [HVACMode.HEAT, HVACMode.HEAT_COOL]:
await self.async_set_preset_mode_internal(self.preset_mode, True)
else:
await self.async_set_preset_mode_internal(PRESET_ECO, True, False)
Expand Down

0 comments on commit e3ff6e3

Please sign in to comment.