Closed pcmoore closed 5 months ago
They have started making tokens only valid for an hour. I already have reauthentication setup so there isn't any loss in functionality, but need to remove the warning since it unnecessarily clogs up user logs.
This will be taken care of in the next release.
Thanks. Would you prefer if I kept this issue open as a FYI to others who may ask the same thing, or would you prefer it closed?
Feel free to keep it open. It will be automatically closed when I link a PR, containing the fix, to this issue.
@pcmoore Update to 0.4.2 and the warning messages will be gone - I've revamped the logic in the backend to track both the token expiry time and to use the refresh token to fetch a new token instead of doing a new "log in" to fetch a new set of tokens.
A quick note to confirm that after running with v0.4.2 for several hours the errors/warnings are indeed gone. Thanks again for your work on this.
Since updating to version 0.4.1 of the addon it requires reauthentication every few hours, selecting (or not selecting) "skip password change" seems to have no affect.
Additional HA information: HA core: 2024.4.4 HA supervisor: 2024.04.4 HA OS: 12.2 HA frontend: 20240404.2