This commit is contained in:
Daniel Langbein 2022-05-23 12:56:49 +02:00
parent 1f63f56707
commit 13c589d0b4

View File

@ -175,7 +175,7 @@ class Xinput:
@classmethod
def get_devices(cls) -> list[Device]:
ids = cls.get_device_ids()
names = [execute(['xinput', 'list', '--name-only', id_]).strip() for id_ in ids]
names = [execute(['xinput', 'list', '--name-only', str(id_)]).strip() for id_ in ids]
return [Device(name, id_) for id_, name in zip(ids, names)]
@classmethod