Description
Hi, the custom component was working before i've upgrade HA to 2021.12.0. Observed this issue in both 12.0 & 12.1
Below is the trace from HA logger.
Logger: homeassistant.components.fan
Source: custom_components/xiaomi_miio_fan/fan.py:1676
Integration: Fan (documentation, issues)
First occurred: 16:30:44 (1 occurrences)
Last logged: 16:30:44
Error while setting up xiaomi_miio_fan platform for fan
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xiaomi_miio_fan/fan.py", line 445, in async_setup_platform
fan = FanZA5(host, token, model=model)
File "/config/custom_components/xiaomi_miio_fan/fan.py", line 1676, in init
self.model = model
AttributeError: can't set attribute
Logger: miio.device
Source: /usr/local/lib/python3.9/site-packages/miio/device.py:153
First occurred: 16:30:44 (1 occurrences)
Last logged: 16:30:44
Found an unsupported model 'zhimi.fan.za5' for class 'Device'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/