LimitlessLED hs_color fixes (#13425)
This commit is contained in:
parent
a08293cff7
commit
444805df10
1 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ class LimitlessLEDGroup(Light):
|
||||||
self._is_on = (last_state.state == STATE_ON)
|
self._is_on = (last_state.state == STATE_ON)
|
||||||
self._brightness = last_state.attributes.get('brightness')
|
self._brightness = last_state.attributes.get('brightness')
|
||||||
self._temperature = last_state.attributes.get('color_temp')
|
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
|
@property
|
||||||
def should_poll(self):
|
def should_poll(self):
|
||||||
|
@ -336,4 +336,4 @@ class LimitlessLEDGroup(Light):
|
||||||
def limitlessled_color(self):
|
def limitlessled_color(self):
|
||||||
"""Convert Home Assistant HS list to RGB Color tuple."""
|
"""Convert Home Assistant HS list to RGB Color tuple."""
|
||||||
from limitlessled import Color
|
from limitlessled import Color
|
||||||
return Color(color_hs_to_RGB(*tuple(self._color)))
|
return Color(*color_hs_to_RGB(*tuple(self._color)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue