Add new climate feature flags to mysensors (#109471)
Adds new climate feature flags to mysensors
This commit is contained in:
parent
5f1d20c5e2
commit
a1cbc62ddc
1 changed files with 2 additions and 1 deletions
|
@ -70,11 +70,12 @@ class MySensorsHVAC(mysensors.device.MySensorsChildEntity, ClimateEntity):
|
|||
"""Representation of a MySensors HVAC."""
|
||||
|
||||
_attr_hvac_modes = OPERATION_LIST
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
@property
|
||||
def supported_features(self) -> ClimateEntityFeature:
|
||||
"""Return the list of supported features."""
|
||||
features = ClimateEntityFeature(0)
|
||||
features = ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
|
||||
set_req = self.gateway.const.SetReq
|
||||
if set_req.V_HVAC_SPEED in self._values:
|
||||
features = features | ClimateEntityFeature.FAN_MODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue