syssi / philipslight

Xiaomi Philips Lights integration for Home Assistant
Apache License 2.0
70 stars 19 forks source link

philips.light.candle2: ERROR ON DEVICE UPDATE on HA Supervisor 2021.12.1 #54

Closed drafort closed 2 years ago

drafort commented 2 years ago

current configuration:

Logger: homeassistant.components.light Source: custom_components/xiaomi_miio_philipslight/light.py:552 Integration: Освещение (documentation, issues) First occurred: 21:33:08 (1 occurrences) Last logged: 21:33:08

xiaomi_miio_philipslight: 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 "/config/custom_components/xiaomi_miio_philipslight/light.py", line 533, in async_update self._color_temp = self.translate( File "/config/custom_components/xiaomi_miio_philipslight/light.py", line 552, in translate value_scaled = float(value - left_min) / float(left_span) TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

vramich commented 2 years ago

exact the same issue after update :(

whitesabv commented 2 years ago

У меня тоже самое.

syssi commented 2 years ago

Please update HA core to version 2021.12.2 and this custom component to version 1.4.6. This should fix the issue.

vramich commented 2 years ago

@syssi thx, it works!