From c6be6be1ec3d60530667a3235f8a1cae78f7cc25 Mon Sep 17 00:00:00 2001 From: Joel <91114733+HelloZhuz@users.noreply.github.com> Date: Wed, 2 Apr 2025 11:30:58 +0800 Subject: [PATCH] fix: initialization problem of _attr_fan_modes (#955) --- custom_components/xiaomi_home/climate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/xiaomi_home/climate.py b/custom_components/xiaomi_home/climate.py index f0b38b7..1bd5e72 100644 --- a/custom_components/xiaomi_home/climate.py +++ b/custom_components/xiaomi_home/climate.py @@ -230,6 +230,7 @@ class FeatureFanMode(MIoTServiceEntity, ClimateEntity): self._prop_fan_on = None self._prop_fan_level = None self._fan_mode_map = None + self._attr_fan_modes = None super().__init__(miot_device=miot_device, entity_data=entity_data) # properties