mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
* Fix #6534 Makes sure 0 is not passes to `color_temperature_kelvin_to_mired`. * Update osramlightify.py * Update osramlightify.py
This commit is contained in:
parent
ccf9edf815
commit
d7addf59cd
@ -215,5 +215,8 @@ class OsramLightifyLight(Light):
|
||||
self._name = self._light.name()
|
||||
self._rgb = self._light.rgb()
|
||||
o_temp = self._light.temp()
|
||||
self._temperature = color_temperature_kelvin_to_mired(o_temp)
|
||||
if o_temp == 0:
|
||||
self._temperature = None
|
||||
else:
|
||||
self._temperature = color_temperature_kelvin_to_mired(o_temp)
|
||||
self._state = self._light.on()
|
||||
|
Loading…
x
Reference in New Issue
Block a user