From 096568bd20fb0a91da0cf066a61378c3bd6b611b Mon Sep 17 00:00:00 2001 From: dim145 Date: Sat, 4 Jan 2025 12:44:04 +0100 Subject: [PATCH] fix: remove useless test line in status_updated of light --- custom_components/localtuya/light.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/custom_components/localtuya/light.py b/custom_components/localtuya/light.py index fd286db..66773c2 100644 --- a/custom_components/localtuya/light.py +++ b/custom_components/localtuya/light.py @@ -465,9 +465,6 @@ class LocaltuyaLight(LocalTuyaEntity, LightEntity): ): self._brightness = self.dps_conf(CONF_BRIGHTNESS) - if brightness_dp_value := self.dp_value(CONF_BRIGHTNESS, None): - self._brightness = brightness_dp_value - if ColorMode.HS in self.supported_color_modes: color = self.dps_conf(CONF_COLOR) if color is not None and not self.is_white_mode: