Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

hid_transport list_devices() method only returns the class name instead of an actual device object #20

Closed
stigbosmans opened this issue Apr 7, 2016 · 1 comment

Comments

@stigbosmans
Copy link

On line 71 in hid_transport.py only the following line is implemented:
devices.append(HIDDevice)
whereas I would expect that an object of the class HIDDevice would be implemented, like below:
devices.append(HIDDevice(d['path']))

Is there another way to obtain a list of actual HIDDevice objects? Or am I doing something wrong?

@dainnilsson
Copy link
Member

That was fixed a while back (which you can see if you look at that line in the current code:
https://github.com/Yubico/python-u2flib-host/blob/master/u2flib_host/hid_transport.py#L71)

There will be a new release which includes this fix shortly (probably some time next week), as well as some additional improvements, such as Python 3 compatibility.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants