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'
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'