mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17: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,11 +80,10 @@ 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
|
||||
self._supported_features |= SUPPORT_COLOR
|
||||
|
||||
# Support Color Temp if both white channels
|
||||
if (self.values.color_channels.value & COLOR_CHANNEL_WARM_WHITE) and (
|
||||
|
Loading…
x
Reference in New Issue
Block a user