diff --git a/custom_components/xiaomi_miot/fan.py b/custom_components/xiaomi_miot/fan.py index 912e4baf0..484b1d387 100644 --- a/custom_components/xiaomi_miot/fan.py +++ b/custom_components/xiaomi_miot/fan.py @@ -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 = [