From 7b28963a8861c466a99a937749506b2f80fc8094 Mon Sep 17 00:00:00 2001 From: Jedmeng Date: Fri, 12 Oct 2018 20:50:20 +0800 Subject: [PATCH] Fix setting opple light color temperature (#17359) --- homeassistant/components/light/opple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/opple.py b/homeassistant/components/light/opple.py index 66850d04406..fb503d33d31 100644 --- a/homeassistant/components/light/opple.py +++ b/homeassistant/components/light/opple.py @@ -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