Add TURN_ON/OFF ClimateEntityFeature for HomeKit Device (#109137)

This commit is contained in:
G Johansson
2024-01-30 19:57:41 +01:00
committed by GitHub
parent 70ee6a16ee
commit 066a0ccc6d

View File

@@ -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