syssi / xiaomi_airconditioningcompanion

Xiaomi Mi and Aqara Air Conditioning Companion integration for Home Assistant
Apache License 2.0
394 stars 93 forks source link

Value Error in Fan Speed #133

Open sephrioth opened 2 years ago

sephrioth commented 2 years ago

Recently I received a lots of error log like this... Both HA and Integration are latest version. And the Climate target temperature has been set to over 200 degree..

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 401, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 609, in async_device_update raise exc File "/config/custom_components/xiaomi_miio_airconditioningcompanion/climate.py", line 357, in async_update ATTR_FAN_MODE: state.fan_speed.name.lower(), File "/usr/local/lib/python3.9/site-packages/miio/airconditioningcompanion.py", line 213, in fan_speed return FanSpeed(speed) File "/usr/local/lib/python3.9/enum.py", line 360, in call return cls.new(cls, value) File "/usr/local/lib/python3.9/enum.py", line 678, in new raise ve_exc ValueError: 4 is not a valid FanSpeed