Fix HA scene, one more.
This commit is contained in:
1 parent
f5add5ae98
commit
8e1e349fa4
2 files changed
+4
-2
No files matched your search
@@ -188,7 +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:
|
||||
if self.supported_features & SUPPORT_COLOR and not self.has_config(
|
||||
CONF_COLOR_TEMP
|
||||
):
|
||||
return [0, 0]
|
||||
return None
|
||||
|
||||
|
||||
Reference in new issue
Block a user