USBMonitor
USBMonitor copied to clipboard
Create support for USBPRINT driver type or at least allow to ignore it
I have a USB printer connected and I cannot initialize the USBMonitor class, even if I device to use filter_devices argument, which would exclude that particular printer, so theoretically I am unable to even use this package whenever the printer is connected to PC, unless I modify source code in the package to ignore any USBPRINT devices.
File "C:\projects\label_printer\env\lib\site-packages\usbmonitor\__platform_specific_detectors\_windows_usb_detector.py", line 126, in __get_driver_type_from_device_id
assert driver_type in _WINDOWS_REGEX_ATTRIBUTES_BY_DRIVER, f"The driver type '{driver_type}' is not supported " \
AssertionError: The driver type 'USBPRINT' is not supported yet, please create an issue in github