Only report color temp when in the correct color mode (#15791)

This commit is contained in:
Robert Svensson authored and Paulus Schoutsen committed 2018-08-03 14:22:40 +02:00
1 parent 0f844311c9
commit cdb86ed154
1 file changed
+3
+3
View File
@@ -98,6 +98,9 @@ class DeconzLight(Light):
@property
def color_temp(self):
"""Return the CT color value."""
if self._light.colormode != 'ct':
return None
return self._light.ct
@property