mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Fix ozw light color values check (#38067)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
83a27f4855
commit
2f4c1e683a
@ -80,10 +80,9 @@ class ZwaveLight(ZWaveDeviceEntity, LightEntity):
|
||||
if self.values.dimming_duration is not None:
|
||||
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
|
||||
|
||||
if self.values.color is not None:
|
||||
self._supported_features |= SUPPORT_COLOR
|
||||
|
||||
# Support Color Temp if both white channels
|
||||
|
Loading…
x
Reference in New Issue
Block a user