mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 00:25:12 +02:00
Add TURN_ON/OFF ClimateEntityFeature for CoolMasterNet (#108972)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user