mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Added default return value for HS_Color (#13395)
This commit is contained in:
parent
8852e52601
commit
553920780f
@ -134,7 +134,8 @@ class Light(HomeAccessory):
|
|||||||
|
|
||||||
# Handle Color
|
# Handle Color
|
||||||
if CHAR_SATURATION in self.chars and CHAR_HUE in self.chars:
|
if CHAR_SATURATION in self.chars and CHAR_HUE in self.chars:
|
||||||
hue, saturation = new_state.attributes.get(ATTR_HS_COLOR)
|
hue, saturation = new_state.attributes.get(
|
||||||
|
ATTR_HS_COLOR, (None, None))
|
||||||
if not self._flag[RGB_COLOR] and (
|
if not self._flag[RGB_COLOR] and (
|
||||||
hue != self._hue or saturation != self._saturation):
|
hue != self._hue or saturation != self._saturation):
|
||||||
self.char_hue.set_value(hue, should_callback=False)
|
self.char_hue.set_value(hue, should_callback=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user