mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix setting opple light color temperature (#17359)
This commit is contained in:
parent
5a00cc5afc
commit
7b28963a88
@ -110,7 +110,7 @@ class OppleLight(Light):
|
||||
self._device.brightness = kwargs[ATTR_BRIGHTNESS]
|
||||
|
||||
if ATTR_COLOR_TEMP in kwargs and \
|
||||
self.brightness != kwargs[ATTR_COLOR_TEMP]:
|
||||
self.color_temp != kwargs[ATTR_COLOR_TEMP]:
|
||||
color_temp = mired_to_kelvin(kwargs[ATTR_COLOR_TEMP])
|
||||
self._device.color_temperature = color_temp
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user