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
a69b1a359d
commit
d8119b2281
2 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue