needs to be int

old-commit-hash: ff1cd3de1e
This commit is contained in:
Willem Melching
2021-03-04 13:25:50 +01:00
parent f0da92ba5c
commit 46ecd68beb
+1 -1
View File
@@ -187,6 +187,6 @@ class Tici(HardwareBase):
def set_screen_brightness(self, percentage):
try:
with open("/sys/class/backlight/panel0-backlight/brightness", "w") as f:
f.write(str(percentage * 10.23))
f.write(str(int(percentage * 10.23)))
except Exception:
pass