diff --git a/custom_components/smartir/light.py b/custom_components/smartir/light.py index d4c3d0e61..3b661b16a 100644 --- a/custom_components/smartir/light.py +++ b/custom_components/smartir/light.py @@ -327,7 +327,7 @@ async def async_turn_on(self, **params): new_brightness == len(self._brightnesses) - 1 or new_brightness == 0 ): - steps = len(self._colortemps) + steps = len(self._brightnesses) did_something = True self._brightness = self._brightnesses[new_brightness] await self.send_command(cmd, steps)