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

Support Unicode strings in encrypt/decrypt #125

Merged
merged 1 commit into from
Aug 8, 2018
Merged

Support Unicode strings in encrypt/decrypt #125

merged 1 commit into from
Aug 8, 2018

Conversation

amelchio
Copy link
Contributor

@amelchio amelchio commented Aug 3, 2018

I have a problem where my HS110 smartplugs with localized names show up with charset errors in Home Assistant.

This PR fixes that by adding utf-8 encode/decode to the protocol encryption functions.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 67.586% when pulling b4d15c3 on amelchio:unicode-encryption into e612560 on GadgetReactor:master.

@rytilahti
Copy link
Collaborator

rytilahti commented Aug 8, 2018

Looks good and works fine here, thanks! I'll add a command to set the name to the cli in another PR. I'll create a new release after we get #124 merged.

@rytilahti rytilahti merged commit a6d515b into GadgetReactor:master Aug 8, 2018
rytilahti pushed a commit to rytilahti/pyHS100 that referenced this pull request Jun 9, 2019
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.

3 participants