Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit 073a261

Browse files
Fixed TypeError when changing brightness
1 parent 54ffbc0 commit 073a261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/usr/share/tuxedo-backlight-control/backlight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def error_no_driver():
6565
if arg > 255 or arg < 0:
6666
exit(error_invalid_brightness(arg))
6767

68-
backlight.brightness = arg
68+
backlight.brightness = str(arg)
6969
elif len(argv) == 3 and cmd == "color" and arg in colorlist:
7070
backlight.state = 1
7171
backlight.set_single_color(arg)

0 commit comments

Comments
 (0)