From 066a0ccc6d3d95a8b61087d2044f3a8b7244b780 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Tue, 30 Jan 2024 19:57:41 +0100 Subject: [PATCH] Add TURN_ON/OFF ClimateEntityFeature for HomeKit Device (#109137) --- homeassistant/components/homekit_controller/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/homekit_controller/climate.py b/homeassistant/components/homekit_controller/climate.py index 1548c23a543..8cc4ec569dd 100644 --- a/homeassistant/components/homekit_controller/climate.py +++ b/homeassistant/components/homekit_controller/climate.py @@ -180,7 +180,7 @@ class HomeKitBaseClimateEntity(HomeKitEntity, ClimateEntity): @cached_property def supported_features(self) -> ClimateEntityFeature: """Return the list of supported features.""" - features = ClimateEntityFeature(0) + features = ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON if self.service.has(CharacteristicsTypes.FAN_STATE_TARGET): features |= ClimateEntityFeature.FAN_MODE