Not allowed characters in password lead to login error
Closed this issue ยท 1 comments
tmycgn commented
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)
github-actions commented
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.