Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
max13fr committed Dec 19, 2021
1 parent 9ce7957 commit e751840
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/airzonecloud/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ def set_temperature(self, **kwargs) -> None:
def set_hvac_mode(self, hvac_mode: str) -> None:
"""Set new target hvac mode."""
if hvac_mode == HVAC_MODE_OFF:
self.turn_off()
self._device.turn_off()
else:
if not self._device.is_on:
self.turn_on(auto_refresh=False)
self._device.turn_on(auto_refresh=False)

# set hvac mode on parent system
if hvac_mode == HVAC_MODE_HEAT:
Expand All @@ -179,7 +179,7 @@ def set_hvac_mode(self, hvac_mode: str) -> None:
elif hvac_mode == HVAC_MODE_DRY:
self._device.group.set_mode("dehumidify")
elif hvac_mode == HVAC_MODE_FAN_ONLY:
self._device.group.set_mode("ventilate")
self._device.group.set_mode("ventilation")

def turn_on(self):
"""Turn on."""
Expand Down

0 comments on commit e751840

Please sign in to comment.