From 895454b6c3f0d7cfaae81020756dae36caacc8eb Mon Sep 17 00:00:00 2001 From: Daniel Hoyer Iversen Date: Sun, 13 Nov 2016 11:10:27 +0100 Subject: [PATCH] support color and brightness in flux_led light --- homeassistant/components/light/flux_led.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/light/flux_led.py b/homeassistant/components/light/flux_led.py index 9de4aa6b0fc..4e3d52b9577 100644 --- a/homeassistant/components/light/flux_led.py +++ b/homeassistant/components/light/flux_led.py @@ -135,7 +135,9 @@ class FluxLight(Light): rgb = kwargs.get(ATTR_RGB_COLOR) brightness = kwargs.get(ATTR_BRIGHTNESS) effect = kwargs.get(ATTR_EFFECT) - if rgb: + if rgb and brightness: + self._bulb.setRgb(*tuple(rgb), brightness=brightness) + elif rgb: self._bulb.setRgb(*tuple(rgb)) elif brightness: if self._mode == 'rgbw':