Fix ozw light color values check (#38067)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Martin Hjelmare 2020-07-23 00:50:44 +02:00 committed by GitHub
parent 83a27f4855
commit 2f4c1e683a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 (