mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Fix setting opple light color temperature (#17359)
This commit is contained in:
committed by
Paulus Schoutsen
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
|
||||
|
||||
|
Reference in New Issue
Block a user