LimitlessLED hs_color fixes (#13425)

pull/13451/head
Anders Melchiorsen 2018-03-25 09:47:10 +02:00 committed by Paulus Schoutsen
parent 3a765692e7
commit 594a5b7d29
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ class LimitlessLEDGroup(Light):
self._is_on = (last_state.state == STATE_ON)
self._brightness = last_state.attributes.get('brightness')
self._temperature = last_state.attributes.get('color_temp')
self._color = last_state.attributes.get('rgb_color')
self._color = last_state.attributes.get('hs_color')
@property
def should_poll(self):
@ -336,4 +336,4 @@ class LimitlessLEDGroup(Light):
def limitlessled_color(self):
"""Convert Home Assistant HS list to RGB Color tuple."""
from limitlessled import Color
return Color(color_hs_to_RGB(*tuple(self._color)))
return Color(*color_hs_to_RGB(*tuple(self._color)))