From b4c0e52ebd251e4e360ccbc7115ae19bb03dbfc2 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Tue, 30 Jan 2024 17:57:11 +0100 Subject: [PATCH] Add TURN_ON/OFF ClimateEntityFeature for ZHA (#108978) --- homeassistant/components/zha/climate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zha/climate.py b/homeassistant/components/zha/climate.py index 95abaf1c83e..40da264d695 100644 --- a/homeassistant/components/zha/climate.py +++ b/homeassistant/components/zha/climate.py @@ -148,7 +148,11 @@ class Thermostat(ZhaEntity, ClimateEntity): self._thrm = self.cluster_handlers.get(CLUSTER_HANDLER_THERMOSTAT) self._preset = PRESET_NONE self._presets = [] - self._supported_flags = ClimateEntityFeature.TARGET_TEMPERATURE + self._supported_flags = ( + ClimateEntityFeature.TARGET_TEMPERATURE + | ClimateEntityFeature.TURN_OFF + | ClimateEntityFeature.TURN_ON + ) self._fan = self.cluster_handlers.get(CLUSTER_HANDLER_FAN) @property