Skip to content

Commit

Permalink
Only report color temp when in the correct color mode (home-assistant…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane610 authored and Jacob Mansfield committed Sep 4, 2018
1 parent 8cce1de commit ea03d6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/light/deconz.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def effect_list(self):
@property
def color_temp(self):
"""Return the CT color value."""
if self._light.colormode != 'ct':
return None

return self._light.ct

@property
Expand Down

0 comments on commit ea03d6f

Please sign in to comment.