diff --git a/custom_components/xiaomi_home/fan.py b/custom_components/xiaomi_home/fan.py index 0ca2bcd..ca1a5c6 100644 --- a/custom_components/xiaomi_home/fan.py +++ b/custom_components/xiaomi_home/fan.py @@ -137,8 +137,8 @@ class Fan(MIoTServiceEntity, FanEntity): self._prop_fan_level = prop elif ( self._prop_fan_level is None - # Fan level with value-range is prior to fan level with value-list - # when a fan has both fan level properties. + # Fan level with value-range is prior to fan level with + # value-list when a fan has both fan level properties. and isinstance(prop.value_list, list) and prop.value_list ):