Skip to content

Commit

Permalink
Merge pull request #164 from DissiNL/patch-1
Browse files Browse the repository at this point in the history
Added FanEntityFeature for TURN_ON/OFF
  • Loading branch information
HVPereira authored Aug 13, 2024
2 parents c8ce415 + 410ecae commit 1d8cf07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion custom_components/midea_dehumidifier_lan/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ async def async_setup_entry(
class DehumidiferFan(ApplianceEntity, FanEntity):
"""Entity for managing dehumidifer fan"""

_attr_supported_features = FanEntityFeature.PRESET_MODE
_attr_supported_features = (
FanEntityFeature.PRESET_MODE |
FanEntityFeature.TURN_OFF |
FanEntityFeature.TURN_ON
)

_attr_preset_modes = PRESET_MODES_7
_attr_speed_count = len(PRESET_MODES_7)
_name_suffix = " Fan"
Expand Down

0 comments on commit 1d8cf07

Please sign in to comment.