mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add TURN_ON/OFF ClimateEntityFeature for CoolMasterNet (#108972)
This commit is contained in:
parent
8395992dbe
commit
6d43a5627a
@ -65,7 +65,10 @@ class CoolmasterClimate(CoolmasterEntity, ClimateEntity):
|
|||||||
def supported_features(self) -> ClimateEntityFeature:
|
def supported_features(self) -> ClimateEntityFeature:
|
||||||
"""Return the list of supported features."""
|
"""Return the list of supported features."""
|
||||||
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:
|
if self.swing_mode:
|
||||||
supported_features |= ClimateEntityFeature.SWING_MODE
|
supported_features |= ClimateEntityFeature.SWING_MODE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user