Skip to content

Commit 1109647

Browse files
committed
Support climate.turn_on and .turn_off actions
As requested in #21.
1 parent b4cc215 commit 1109647

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

custom_components/mitsubishi/climate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ class MitsubishiClimate(MitsubishiEntity, ClimateEntity):
117117
_attr_swing_horizontal_modes = list(HSWING_HA_TO_MITSUBISHI.keys())
118118

119119
_attr_supported_features = (
120-
ClimateEntityFeature.TARGET_TEMPERATURE
120+
0
121+
| ClimateEntityFeature.TURN_ON
122+
| ClimateEntityFeature.TURN_OFF
123+
| ClimateEntityFeature.TARGET_TEMPERATURE
121124
| ClimateEntityFeature.FAN_MODE
122125
| ClimateEntityFeature.SWING_MODE
123126
| ClimateEntityFeature.SWING_HORIZONTAL_MODE # type: ignore[attr-defined]

0 commit comments

Comments
 (0)