mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix tado turn on off (#22291)
* fix for turn on and off, with new pyTado missing blank line * removed, because can't push * uploaded the file through github again
This commit is contained in:
parent
b50afec5f1
commit
6996fec809
@ -121,3 +121,8 @@ class TadoDataStore:
|
||||
"""Wrap for setZoneOverlay(..)."""
|
||||
self.tado.setZoneOverlay(zone_id, mode, temperature, duration)
|
||||
self.update(no_throttle=True) # pylint: disable=unexpected-keyword-arg
|
||||
|
||||
def set_zone_off(self, zone_id, mode):
|
||||
"""Set a zone to off."""
|
||||
self.tado.setZoneOverlay(zone_id, mode, None, None, 'HEATING', 'OFF')
|
||||
self.update(no_throttle=True) # pylint: disable=unexpected-keyword-arg
|
||||
|
@ -363,7 +363,7 @@ class TadoClimate(ClimateDevice):
|
||||
if self._current_operation == CONST_MODE_OFF:
|
||||
_LOGGER.info("Switching mytado.com to OFF for zone %s",
|
||||
self.zone_name)
|
||||
self._store.set_zone_overlay(self.zone_id, CONST_OVERLAY_MANUAL)
|
||||
self._store.set_zone_off(self.zone_id, CONST_OVERLAY_MANUAL)
|
||||
self._overlay_mode = self._current_operation
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user