Add TURN_ON/OFF ClimateEntityFeature for CoolMasterNet (#108972)

pull/109150/head
G Johansson 2024-01-30 18:14:16 +01:00 committed by GitHub
parent 8395992dbe
commit 6d43a5627a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

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