Skip to content

Commit ac7ca89

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

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

custom_components/mitsubishi/climate.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ class MitsubishiClimate(MitsubishiEntity, ClimateEntity):
116116
_attr_swing_modes = list(VSWING_HA_TO_MITSUBISHI.keys())
117117
_attr_swing_horizontal_modes = list(HSWING_HA_TO_MITSUBISHI.keys())
118118

119-
_attr_supported_features = (
120-
ClimateEntityFeature.TARGET_TEMPERATURE
119+
_attr_supported_features = (0
120+
| ClimateEntityFeature.TURN_ON
121+
| ClimateEntityFeature.TURN_OFF
122+
| ClimateEntityFeature.TARGET_TEMPERATURE
121123
| ClimateEntityFeature.FAN_MODE
122124
| ClimateEntityFeature.SWING_MODE
123125
| ClimateEntityFeature.SWING_HORIZONTAL_MODE # type: ignore[attr-defined]

0 commit comments

Comments
 (0)