You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
Traceback (most recent call last):
File "/config/custom_components/wiz_light/light.py", line 251, in update_temperature
self._light.state.get_colortemp()
File "/usr/src/homeassistant/homeassistant/util/color.py", line 515, in color_temperature_kelvin_to_mired
return math.floor(1000000 / kelvin_temperature)
ZeroDivisionError: division by zero
Thanks for the issue :)
I think the problem is that the bulb returned temp: 0 in the getPilot. That will throw this exception because I try to get all returned values to show the correct status of the bulb. Regardless if the temp itself was changed. That's why the exception was logged every time you change any vaule.
I'm not sure why this issue was not popping up in my tests. Maybe there you have a newer FW version.
Error:
getSystemConfig:
getPilot:
Home Assistant entity attributes:
The text was updated successfully, but these errors were encountered: