[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of currently previous issues..
Describe the issue
when the matrix login happens this ntegration first tries to use the token in .matrix.conf and fails and logs an error. Then it tries the password and succeeds. although the integration is successfully logged in there remains the error in the HA log, which is misleading.
it would be better to log a warning or info when token login fails and only log an error, if no login option did work.
Reproduction steps
enable debug logging for better understanding of what is happening
restart HA
watch full log
...
Debug logs
DEBUG (MainThread) [custom_components.matrix] Logging in using stored token
WARNING (MainThread) [custom_components.matrix] Login by token failed: M_FORBIDDEN, Invalid login token
DEBUG (MainThread) [custom_components.matrix] Logging in using password
System Health details
no need, known issue
Checklist
Describe the issue
when the matrix login happens this ntegration first tries to use the token in .matrix.conf and fails and logs an error. Then it tries the password and succeeds. although the integration is successfully logged in there remains the error in the HA log, which is misleading.
it would be better to log a warning or info when token login fails and only log an error, if no login option did work.
Reproduction steps
...
Debug logs
Diagnostics dump
no need