Fix review comment.

This commit is contained in:
ultratoto14 committed 2020-12-17 21:46:26 +01:00
1 parent acf3e6eccd
commit 444ec78e2b
1 file changed
+3 -2
+3 -2
View File
@@ -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