Allow turning off a tado water heater (#29221)

This commit is contained in:
Michaël Arnauts 2019-11-29 19:22:22 +01:00 committed by GitHub
parent 4065c46046
commit e405398ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -497,6 +497,15 @@ class TadoClimate(ClimateDevice):
self._store.set_zone_off(
self.zone_id, CONST_OVERLAY_MANUAL, "AIR_CONDITIONING"
)
elif self._hot_water_device:
_LOGGER.info(
"Switching mytado.com to OFF for zone %s (%d) - HOT_WATER",
self.zone_name,
self.zone_id,
)
self._store.set_zone_off(
self.zone_id, CONST_OVERLAY_MANUAL, "HOT_WATER"
)
else:
_LOGGER.info(
"Switching mytado.com to OFF for zone %s (%d) - HEATING",