-
-
Notifications
You must be signed in to change notification settings - Fork 595
Closed
Labels
Description
Describe the bug
After updating Home Assistant to version 2021.12.0b1, errors appeared in the logs.
2021-12-06 11:40:31 WARNING (SyncWorker_6) [miio.device] Found an unsupported model 'philips.light.downlight' for class 'PhilipsBulb'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
2021-12-06 11:40:31 WARNING (SyncWorker_0) [miio.device] Found an unsupported model 'philips.light.downlight' for class 'PhilipsBulb'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
2021-12-06 11:40:31 WARNING (SyncWorker_2) [miio.device] Found an unsupported model 'philips.light.downlight' for class 'PhilipsBulb'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
2021-12-06 11:40:31 WARNING (SyncWorker_7) [miio.device] Found an unsupported model 'philips.light.downlight' for class 'PhilipsBulb'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
...
2021-12-06 11:40:33 ERROR (MainThread) [homeassistant.components.light] xiaomi_miio: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 684, in async_device_update
await task
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py", line 502, in async_update
self._color_temp = self.translate(
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py", line 521, in translate
value_scaled = float(value - left_min) / float(left_span)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
Device information:
If the issue is specific to a device [Use miiocli device --ip <ip address> --token <token> info]:
- Model: philips.light.downlight (Xiaomi Philips Zhirui Smart Downlight)
- Hardware version:
- Firmware version:
To Reproduce
Steps to reproduce the behavior:
- install Home Assistant 2021.12.0b1
Expected behavior
A clear and concise description of what you expected to happen.
Console output
If applicable, add console output to help explain your problem.
If the issue is about communication with a specific device, consider including the output using the --debug flag.