Fix ozw light color values check (#38067)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
1 parent
83a27f4855
commit
2f4c1e683a
1 file changed
+2
-3
@@ -80,11 +80,10 @@ class ZwaveLight(ZWaveDeviceEntity, LightEntity):
|
|||||||
if self.values.dimming_duration is not None:
|
if self.values.dimming_duration is not None:
|
||||||
self._supported_features |= SUPPORT_TRANSITION
|
self._supported_features |= SUPPORT_TRANSITION
|
||||||
|
|
||||||
if self.values.color is None and self.values.color_channels is None:
|
if self.values.color is None or self.values.color_channels is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.values.color is not None:
|
self._supported_features |= SUPPORT_COLOR
|
||||||
self._supported_features |= SUPPORT_COLOR
|
|
||||||
|
|
||||||
# Support Color Temp if both white channels
|
# Support Color Temp if both white channels
|
||||||
if (self.values.color_channels.value & COLOR_CHANNEL_WARM_WHITE) and (
|
if (self.values.color_channels.value & COLOR_CHANNEL_WARM_WHITE) and (
|
||||||
|
|||||||
Reference in new issue
Block a user