Skip to content

Commit

Permalink
Add TURN_ON/OFF ClimateEntityFeature for HomeKit Device (#109137)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST authored Jan 30, 2024
1 parent 70ee6a1 commit 066a0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/homekit_controller/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def async_set_fan_mode(self, fan_mode: str) -> None:
@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
Expand Down

0 comments on commit 066a0cc

Please sign in to comment.