Update internal state whatever mode is.

This commit is contained in:
ultratoto14
2020-11-16 11:32:33 +01:00
parent 8d91d9278b
commit 9be72d1152

View File

@@ -341,7 +341,7 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity):
if supported & SUPPORT_BRIGHTNESS: if supported & SUPPORT_BRIGHTNESS:
self._brightness = self.dps_conf(CONF_BRIGHTNESS) self._brightness = self.dps_conf(CONF_BRIGHTNESS)
if self.__is_color_mode(): if supported & SUPPORT_COLOR:
color = self.dps_conf(CONF_COLOR) color = self.dps_conf(CONF_COLOR)
if color is not None: if color is not None:
if self.__is_color_rgb_encoded(): if self.__is_color_rgb_encoded():