Skip to content

Commit

Permalink
🔧 fix for fan entity (#2357)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Feb 12, 2025
1 parent 5c1937e commit bcdf2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def on_init(self):

# issues/617
if self.custom_config_bool('disable_preset_modes'):
self._supported_features &= ~FanEntityFeature.PRESET_MODE
self._attr_supported_features &= ~FanEntityFeature.PRESET_MODE
self._attr_preset_modes = []
elif dpm := self.custom_config_list('disable_preset_modes'):
self._attr_preset_modes = [
Expand Down

0 comments on commit bcdf2a0

Please sign in to comment.