Skip to content

Commit

Permalink
Merge pull request home-assistant#4373 from home-assistant/flux_led_c…
Browse files Browse the repository at this point in the history
…olor_bright

support color and brightness in flux_led light
  • Loading branch information
Danielhiversen authored Nov 13, 2016
2 parents 2109b7a + 895454b commit c5fdd43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homeassistant/components/light/flux_led.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ def turn_on(self, **kwargs):
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':
Expand Down

0 comments on commit c5fdd43

Please sign in to comment.