Skip to content

Commit

Permalink
fix: remove useless test line in status_updated of light
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim145 committed Jan 4, 2025
1 parent e377a09 commit d86e1da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions custom_components/localtuya/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,6 @@ def status_updated(self):
):
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:
Expand Down

0 comments on commit d86e1da

Please sign in to comment.