mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add TURN_ON/OFF ClimateEntityFeature for Sensibo (#108962)
This commit is contained in:
parent
c51a675893
commit
9d664c0fdd
@ -207,7 +207,7 @@ class SensiboClimate(SensiboDeviceBaseEntity, ClimateEntity):
|
|||||||
|
|
||||||
def get_features(self) -> ClimateEntityFeature:
|
def get_features(self) -> ClimateEntityFeature:
|
||||||
"""Get supported features."""
|
"""Get supported features."""
|
||||||
features = ClimateEntityFeature(0)
|
features = ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
|
||||||
for key in self.device_data.full_features:
|
for key in self.device_data.full_features:
|
||||||
if key in FIELD_TO_FLAG:
|
if key in FIELD_TO_FLAG:
|
||||||
features |= FIELD_TO_FLAG[key]
|
features |= FIELD_TO_FLAG[key]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user