Add new climate feature flags to lyric (#109571)
This commit is contained in:
parent
846dae675c
commit
8ef2bece59
1 changed files with 6 additions and 0 deletions
|
@ -173,6 +173,7 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
|
|||
PRESET_TEMPORARY_HOLD,
|
||||
PRESET_VACATION_HOLD,
|
||||
]
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -231,6 +232,11 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
|
|||
self._attr_supported_features | ClimateEntityFeature.FAN_MODE
|
||||
)
|
||||
|
||||
if len(self.hvac_modes) > 1:
|
||||
self._attr_supported_features |= (
|
||||
ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
|
||||
super().__init__(
|
||||
coordinator,
|
||||
location,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue