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

Not allowed characters in password lead to login error #160

Closed
tmycgn opened this issue Jul 24, 2024 · 1 comment
Closed

Not allowed characters in password lead to login error #160

tmycgn opened this issue Jul 24, 2024 · 1 comment
Labels

Comments

@tmycgn
Copy link

tmycgn commented Jul 24, 2024

Hi all,

I was briefly despairing that my new Midea Cube 20 (EU Edition) wouldn't work with the adapter, but it does. 👍 The problem was that the password I set contained special characters and the adapter had a problem with this. You can create the account with special characters, but when you change the password, it says 8-20 characters, letters and numbers. So the idea here is either to maybe fix the error or simply to point it out in the password field before the next user cries. :)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/midea_beautiful/crypto.py", line 521, in encrypt_iam_password
    md.update(password.encode("ascii"))
              ^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in position 7: ordinal not in range(128)

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Sep 23, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant