Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accuracy of the measurements has a bug when using python 2.7 #10

Closed
Jussihoo opened this issue Apr 30, 2017 · 2 comments
Closed

Accuracy of the measurements has a bug when using python 2.7 #10

Jussihoo opened this issue Apr 30, 2017 · 2 comments

Comments

@Jussihoo
Copy link

when using python 2.7 the accuracy of the data what the _get_temperature, _get_humidity, _get_pressure etc. in the decoder.py is allways integered instead of float.

One way to fix this problem in python2.7 is to add this as the first code line in the decoder.py:
from future import division

@ttu
Copy link
Owner

ttu commented May 3, 2017

Thanks for the fix. (fed8b0c) Will merge this to master with other data format changes.

Should also change unit test code, so could run tests with Python 2.7

@ttu
Copy link
Owner

ttu commented May 5, 2017

Merged to master (#12) and released with version 0.6.0

@ttu ttu closed this as completed May 5, 2017
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

No branches or pull requests

2 participants