diff --git a/custom_components/localtuya/light.py b/custom_components/localtuya/light.py index b7745e7..a7f9b2d 100644 --- a/custom_components/localtuya/light.py +++ b/custom_components/localtuya/light.py @@ -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 diff --git a/requirements_test.txt b/requirements_test.txt index ef8a762..7f2bb4c 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -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