Merge pull request #256 from rospogrigio/scene_fix_2

Fix one more HA scene problem
This commit is contained in:
ultratoto14 authored and GitHub committed 2020-12-17 21:56:19 +01:00
commit 6cc178fb72
1 file changed
+4 -1
+4 -1
View File
@@ -188,7 +188,10 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity):
"""Return the hs color value."""
if self.is_color_mode:
return self._hs
if self.supported_features & SUPPORT_COLOR:
if (
self.supported_features & SUPPORT_COLOR
and not self.supported_features & SUPPORT_COLOR_TEMP
):
return [0, 0]
return None