From d1d3d71091d11a161353c611b8ec21bdcd3f988d Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Sat, 23 Mar 2024 09:59:35 -0400 Subject: [PATCH] settings: patch to make python 3.7 happy --- lib/logitech_receiver/settings_templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logitech_receiver/settings_templates.py b/lib/logitech_receiver/settings_templates.py index 1b42e891..1591c566 100644 --- a/lib/logitech_receiver/settings_templates.py +++ b/lib/logitech_receiver/settings_templates.py @@ -349,7 +349,7 @@ class Backlight2Duration(_Setting): def write(self, device, data_bytes): backlight = device.backlight - new_duration = (int.from_bytes(data_bytes) + 4) // 5 # use ceiling in 5-second units + new_duration = (int.from_bytes(data_bytes, byteorder="big") + 4) // 5 # use ceiling in 5-second units if new_duration != getattr(backlight, self.field): setattr(backlight, self.field, new_duration) backlight.write()