def hid_transport(self, device): from trezorlib.transport_hid import HidTransport return HidTransport.find_by_path(device.path)