HclX / WyzeSensePy

A python script communicating with WyzeSense gateway
MIT License
91 stars 15 forks source link

Upgrade to python3 #3

Closed kevinvincent closed 5 years ago

kevinvincent commented 5 years ago

I needed to fuss around with ord() and adding b before strings to convert them to bytes but it should work! Tested locally with a contact sensor.

kevinvincent commented 5 years ago

This was necessary to incorporate into Home Assistant as that project uses python3.

HclX commented 5 years ago

I've modified the code to make it compatible for both python 2 and 3. That happened before I looked into this pull request, so this is no longer needed. Please update your fork if you need the latest code. Also, the package is now published on pypi so you can get it with "pip install wyzesense", works for both python 2 and 3.

kevinvincent commented 5 years ago

Thank you so much thats exactly what I was looking for!