Skip to content

Commit

Permalink
Do not change the HVAC mode when it's already off
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexwijn committed May 13, 2024
1 parent 27adf70 commit 26cac74
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions custom_components/sat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,10 +960,6 @@ async def async_set_preset_mode(self, preset_mode: str) -> None:
self._attr_preset_mode = PRESET_NONE
await self.async_set_target_temperature(self._pre_custom_temperature)
else:
# Set the HVAC mode to `HEAT` if it is currently `OFF`
if self.hvac_mode == HVACMode.OFF:
await self.async_set_hvac_mode(HVACMode.HEAT)

# Save the current target temperature if the preset mode is being set for the first time
if self._attr_preset_mode == PRESET_NONE:
self._pre_custom_temperature = self._target_temperature
Expand Down

0 comments on commit 26cac74

Please sign in to comment.