hid-recorder doesn't like a bustype of zero
See the attachment in libinput/libinput#1037 (comment 2560864):
sudo hid-recorder
Traceback (most recent call last):
File "/nix/store/p5x7m9z9hs26f6qgxxj95wm1x7yxc4j7-python3.12-hid-tools-0.7/bin/.hid-recorder-wrapped", line 9, in <module>
sys.exit(main())
^^^^^^
File "/nix/store/7b7509xv9aqdrayjf1fv5ialf4gbi5wd-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/7b7509xv9aqdrayjf1fv5ialf4gbi5wd-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/nix/store/7b7509xv9aqdrayjf1fv5ialf4gbi5wd-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/7b7509xv9aqdrayjf1fv5ialf4gbi5wd-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/p5x7m9z9hs26f6qgxxj95wm1x7yxc4j7-python3.12-hid-tools-0.7/lib/python3.12/site-packages/hidtools/cli/record.py", line 91, in main
device_list = [open(list_devices())]
^^^^^^^^^^^^^^
File "/nix/store/p5x7m9z9hs26f6qgxxj95wm1x7yxc4j7-python3.12-hid-tools-0.7/lib/python3.12/site-packages/hidtools/cli/record.py", line 36, in list_devices
d = HidrawDevice(f)
^^^^^^^^^^^^^^^
File "/nix/store/p5x7m9z9hs26f6qgxxj95wm1x7yxc4j7-python3.12-hid-tools-0.7/lib/python3.12/site-packages/hidtools/hidraw.py", line 233, in __init__
self.bustype = BusType(bustype)
^^^^^^^^^^^^^^^^
File "/nix/store/pgb120fb7srbh418v4i2a70aq1w9dawd-python3-3.12.5/lib/python3.12/enum.py", line 757, in __call__
return cls.__new__(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/pgb120fb7srbh418v4i2a70aq1w9dawd-python3-3.12.5/lib/python3.12/enum.py", line 1171, in __new__
raise ve_exc
ValueError: 0 is not a valid BusType