Add TURN_ON/OFF ClimateEntityFeature for CoolMasterNet (#108972)

This commit is contained in:
G Johansson
2024-01-30 18:14:16 +01:00
committed by GitHub
parent 8395992dbe
commit 6d43a5627a

View File

@@ -65,7 +65,10 @@ class CoolmasterClimate(CoolmasterEntity, ClimateEntity):
def supported_features(self) -> ClimateEntityFeature:
"""Return the list of supported features."""
supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.FAN_MODE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
if self.swing_mode:
supported_features |= ClimateEntityFeature.SWING_MODE