Issue when logging in - "template"
When I try to log in I get an error message that just says "template"
I've tried different accounts and always the same error.
There are no errors anywhere in logs
2025-03-04 14:58:15 [D] SysInfo: {'installation_type': 'Home Assistant Container', 'version': '2025.2.5', 'dev': False, 'hassio': False, 'virtualenv': False, 'python_version': '3.13.1', 'docker': True, 'arch': 'x86_64', 'timezone': 'Atlantic/Reykjavik', 'os_name': 'Linux', 'os_version': '6.1.49-Unraid', 'user': 'root', 'sonoff_version': '3.8.2 (c4b6fda)'} 2025-03-04 14:58:15 [D] AUTO mode start
@AlexxIT please let me know if there is anything I can do to help you troubleshoot this issue.
It should show error message, but can't. Maybe message contains some bad symbols, I don't know. You can check network tab in the browser dev tools. You will see new line with response just after click to submit button.
Try to change this line https://github.com/AlexxIT/SonoffLAN/blob/194c20765440c601b21696955c5d3c88427f836f/custom_components/sonoff/config_flow.py#L73
from str(e) to repr(e)
Once I updated that line I get "TimeoutError()"
Maybe some network error with connection to cloud servers. You may have Internet blocking rules set up.
https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.9.0
Please reopen the issue if there are still any problems