From 3ecae049bb3f4285410d0c7a99afceb2878ea661 Mon Sep 17 00:00:00 2001 From: ultratoto14 Date: Mon, 23 Nov 2020 20:30:45 +0100 Subject: [PATCH] overzealous check. --- custom_components/localtuya/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/light.py b/custom_components/localtuya/light.py index 9e63a8f..744c8c4 100644 --- a/custom_components/localtuya/light.py +++ b/custom_components/localtuya/light.py @@ -373,7 +373,7 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity): if supported & SUPPORT_BRIGHTNESS and self.has_config(CONF_BRIGHTNESS): self._brightness = self.dps_conf(CONF_BRIGHTNESS) - if supported & SUPPORT_COLOR and self.has_config(CONF_COLOR): + if supported & SUPPORT_COLOR: color = self.dps_conf(CONF_COLOR) if color is not None and not self.is_white_mode: if self.__is_color_rgb_encoded():