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.
cdheiser authored and frenck committed Apr 5, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
frenck Franck Nijhof
1 parent ef8e548 commit 3d0bafb
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
@@ -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)

0 comments on commit 3d0bafb

Please sign in to comment.