From bcdf2a0f586c31b7e6e5adc29cbff46cb51c7226 Mon Sep 17 00:00:00 2001 From: Alone Date: Wed, 12 Feb 2025 17:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix=20for=20fan=20entity=20(#235?= =?UTF-8?q?7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/fan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [