mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Only report color temp when in the correct color mode (#15791)
This commit is contained in:
parent
0f844311c9
commit
cdb86ed154
@ -98,6 +98,9 @@ class DeconzLight(Light):
|
|||||||
@property
|
@property
|
||||||
def color_temp(self):
|
def color_temp(self):
|
||||||
"""Return the CT color value."""
|
"""Return the CT color value."""
|
||||||
|
if self._light.colormode != 'ct':
|
||||||
|
return None
|
||||||
|
|
||||||
return self._light.ct
|
return self._light.ct
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user