Fix HA scene, one more.
This commit is contained in:
committed by
ultratoto14
parent
f5add5ae98
commit
8e1e349fa4
@@ -188,7 +188,9 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity):
|
|||||||
"""Return the hs color value."""
|
"""Return the hs color value."""
|
||||||
if self.is_color_mode:
|
if self.is_color_mode:
|
||||||
return self._hs
|
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 [0, 0]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
black==20.8b1
|
black==20.8b1
|
||||||
codespell==2.0.0
|
codespell==2.0.0
|
||||||
flake8==3.8.3
|
flake8==3.8.4
|
||||||
mypy==0.782
|
mypy==0.782
|
||||||
pydocstyle==5.1.1
|
pydocstyle==5.1.1
|
||||||
cryptography==3.2
|
cryptography==3.2
|
||||||
|
Reference in New Issue
Block a user