I was upgrading and did a full remove/reinstall of the integration and component. When trying to add the integration back it kept failing the last step in password_manager.py. I was getting the following error message:
2020-03-19 10:46:24 WARNING (MainThread) [custom_components.blueiris.password_manager] BlueIris Server password is not encrypted, please remove integration and reintegrate
2020-03-19 10:46:24 WARNING (MainThread) [custom_components.blueiris.config_flow] Failed to access BlueIris Server (192.168.xx.xx)
I believe the issue was caused by this check:
if decrypted.endswith("=="):
the generated key file contents on my system ended with a single =, not ==.
When corrected to:
if decrypted.endswith("="):
The integration works fine for me to add my server back.
I am on HA 0.107.0, but this was occurring on 0.106.6 as well.
I was upgrading and did a full remove/reinstall of the integration and component. When trying to add the integration back it kept failing the last step in password_manager.py. I was getting the following error message:
I believe the issue was caused by this check:
the generated key file contents on my system ended with a single =, not ==.
When corrected to:
The integration works fine for me to add my server back.
I am on HA 0.107.0, but this was occurring on 0.106.6 as well.