Skip to content

Commit

Permalink
Added default return value for HS_Color (#13395)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored and balloob committed Mar 23, 2018
1 parent 8852e52 commit 5539207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/homekit/type_lights.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def update_state(self, entity_id=None, old_state=None, new_state=None):

# Handle Color
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 (
hue != self._hue or saturation != self._saturation):
self.char_hue.set_value(hue, should_callback=False)
Expand Down

0 comments on commit 5539207

Please sign in to comment.