Skip to content

Commit

Permalink
Add new climate feature flags to mysensors (home-assistant#109471)
Browse files Browse the repository at this point in the history
Adds new climate feature flags to mysensors
  • Loading branch information
gjohansson-ST authored Feb 3, 2024
1 parent 5f1d20c commit a1cbc62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/mysensors/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1cbc62

Please sign in to comment.