deCONZ small improvements (#15128)

* Make sure that bridge id is available for config entry

* Fix so deconz reports proper color values

* Bump dependency to v39
This commit is contained in:
Robert Svensson 2018-06-24 23:48:59 +02:00 committed by Aaron Bach
parent 6064932e2e
commit 5a71a22fb9
5 changed files with 11 additions and 12 deletions

View file

@ -101,9 +101,11 @@ class DeconzLight(Light):
return self._light.ct
@property
def xy_color(self):
"""Return the XY color value."""
return self._light.xy
def hs_color(self):
"""Return the hs color value."""
if self._light.colormode in ('xy', 'hs') and self._light.xy:
return color_util.color_xy_to_hs(*self._light.xy)
return None
@property
def is_on(self):