mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add TURN_ON/OFF ClimateEntityFeature for HomeKit Device (#109137)
This commit is contained in:
parent
70ee6a16ee
commit
066a0ccc6d
@ -180,7 +180,7 @@ class HomeKitBaseClimateEntity(HomeKitEntity, ClimateEntity):
|
|||||||
@cached_property
|
@cached_property
|
||||||
def supported_features(self) -> ClimateEntityFeature:
|
def supported_features(self) -> ClimateEntityFeature:
|
||||||
"""Return the list of supported features."""
|
"""Return the list of supported features."""
|
||||||
features = ClimateEntityFeature(0)
|
features = ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
|
||||||
|
|
||||||
if self.service.has(CharacteristicsTypes.FAN_STATE_TARGET):
|
if self.service.has(CharacteristicsTypes.FAN_STATE_TARGET):
|
||||||
features |= ClimateEntityFeature.FAN_MODE
|
features |= ClimateEntityFeature.FAN_MODE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user