Skip to content

Commit

Permalink
Fix light dim on 3.2.5. #162
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou committed Mar 10, 2024
1 parent b04aa73 commit 5e7c5f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/localtuya/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ async def async_turn_on(self, **kwargs):
states[self._config.get(CONF_COLOR_MODE)] = MODE_MUSIC

if ATTR_BRIGHTNESS in kwargs and (
ColorMode.BRIGHTNESS in color_modes or self.has_config(CONF_BRIGHTNESS)
ColorMode.BRIGHTNESS in color_modes
or self.has_config(CONF_BRIGHTNESS)
or self.has_config(CONF_COLOR)
):
brightness = map_range(
int(kwargs[ATTR_BRIGHTNESS]),
Expand Down

0 comments on commit 5e7c5f0

Please sign in to comment.