def is_active(self):
        if not self.vendor_id:
            return False
        return True
Poll if device is still valid
dataset/ETHPy150Open rene-aguirre/pywinusb/pywinusb/hid/core.py/HidDevice.is_active