Skip to content

Commit 054bcf2

Browse files
committed
fix: "device.fn" was removed in evdev 1.9.0. Use "device.path" as adviced
1 parent 85fe93b commit 054bcf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jukebox/components/rfid/hardware/generic_usb/generic_usb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _is_keyboard(device: evdev.InputDevice) -> bool:
6666
is_keyboard_res = mandatory_keys.issubset(device_key_list) and reserved_key.isdisjoint(device_key_list)
6767
except KeyError:
6868
is_keyboard_res = False
69-
logger.debug(f"is_keyboard test for '{device.name}' at '{device.fn}' is '{is_keyboard_res}'")
69+
logger.debug(f"is_keyboard test for '{device.name}' at '{device.path}' is '{is_keyboard_res}'")
7070
return is_keyboard_res
7171

7272

0 commit comments

Comments
 (0)