Fix HA scene, one more.

This commit is contained in:
dependabot-preview[bot]
2020-12-17 13:15:28 +00:00
committed by ultratoto14
parent f5add5ae98
commit 8e1e349fa4
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -1,6 +1,6 @@
black==20.8b1
codespell==2.0.0
flake8==3.8.3
flake8==3.8.4
mypy==0.782
pydocstyle==5.1.1
cryptography==3.2