Skip to content

Commit

Permalink
Only report color temp when in the correct color mode (#15791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane610 authored and balloob committed Aug 3, 2018
1 parent 6f2000f commit 91e8680
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 91e8680

Please sign in to comment.