Fix setting opple light color temperature (#17359)

This commit is contained in:
Jedmeng 2018-10-12 20:50:20 +08:00 committed by Paulus Schoutsen
parent 5a00cc5afc
commit 7b28963a88

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