Closed
Description
Home Assistant release with the issue:
0.73.0
Last working Home Assistant release (if known):
0.72.1
Operating environment (Hass.io/Docker/Windows/etc.):
Docker / RPI3B
Component/platform:
light.tplink
Description of problem:
LB100 causes division by zero error with kelvin temperature conversion. seems #15020 could be the culprit
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
light:
- platform: tplink
host: 192.168.1.111
Traceback (if applicable):
homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 214, in async_update_ha_state
attr = self.state_attributes or {}
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/__init__.py", line 504, in state_attributes
value = getattr(self, prop)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/tplink.py", line 110, in min_mireds
return kelvin_to_mired(self.smartbulb.valid_temperature_range[1])
File "/usr/lib/python3.6/site-packages/homeassistant/util/color.py", line 474, in color_temperature_kelvin_to_mired
return math.floor(1000000 / kelvin_temperature)
ZeroDivisionError: division by zero
Additional information:
Metadata
Metadata
Assignees
Labels
No labels