Fix setting opple light color temperature (#17359)

This commit is contained in:
Jedmeng authored and Paulus Schoutsen committed 2018-10-12 14:50:20 +02:00
1 parent 5a00cc5afc
commit 7b28963a88
1 file changed
+1 -1
+1 -1
View File
@@ -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