Skip to content

Conversation

@KennethNielsen
Copy link
Member

This PR implements a somewhat clumsy but functionel Python3 (on top of Python2) support for this driver. The device in question is a small USB-pen based temperature and humidity and sensor. I don't know if it is even in use at CINF anymore, which may mean that the right move really is to make it Python3 only. If that is what you prefer, let me know and I will fix it.

Copy link
Member

@Ejler Ejler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that a useful ImportError is hidden if you've installed 'hid', but not one of the required backends to hid. It might be useful to reraise this error message since the script will crash anyway if hid is not properly imported. Otherwise it looks fine. I wouldn't mind it being Python3-only, but if both are supported I see no reason to change that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants