Skip to content

Commit

Permalink
Fix Lutron light brightness values (#114794)
Browse files Browse the repository at this point in the history
Fix brightness values in light.py

Bugfix to set the brightness to 0-100 which is what Lutron expects.
  • Loading branch information
cdheiser authored Apr 4, 2024
1 parent 7b64097 commit 7228f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/lutron/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def turn_on(self, **kwargs: Any) -> None:
else:
brightness = self._prev_brightness
self._prev_brightness = brightness
args = {"new_level": brightness}
args = {"new_level": to_lutron_level(brightness)}
if ATTR_TRANSITION in kwargs:
args["fade_time_seconds"] = kwargs[ATTR_TRANSITION]
self._lutron_device.set_level(**args)
Expand Down

0 comments on commit 7228f63

Please sign in to comment.