From 444ec78e2bb4dab794b1aba470ac56810002dab7 Mon Sep 17 00:00:00 2001 From: ultratoto14 Date: Thu, 17 Dec 2020 21:44:15 +0100 Subject: [PATCH] Fix review comment. --- custom_components/localtuya/light.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/localtuya/light.py b/custom_components/localtuya/light.py index a7f9b2d..d0d7c67 100644 --- a/custom_components/localtuya/light.py +++ b/custom_components/localtuya/light.py @@ -188,8 +188,9 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity): """Return the hs color value.""" if self.is_color_mode: return self._hs - if self.supported_features & SUPPORT_COLOR and not self.has_config( - CONF_COLOR_TEMP + if ( + self.supported_features & SUPPORT_COLOR + and not self.supported_features & SUPPORT_COLOR_TEMP ): return [0, 0] return None