Skip to content

Enhance LibreLinkApiClient with re-authentication and error handling#68

Open
fabio1605 wants to merge 2 commits into
gillesvs:mainfrom
fabio1605:main
Open

Enhance LibreLinkApiClient with re-authentication and error handling#68
fabio1605 wants to merge 2 commits into
gillesvs:mainfrom
fabio1605:main

Conversation

@fabio1605

Copy link
Copy Markdown

No description provided.

Added automatic re-authentication and account ID hashing to the LibreLink API client. Improved error handling and updated method signatures.
@fabio1605 fabio1605 closed this Mar 17, 2026
@fabio1605 fabio1605 reopened this Mar 17, 2026
@fabio1605

fabio1605 commented Mar 17, 2026

Copy link
Copy Markdown
Author

This fixes a case where the integration stops updating after the LibreLink token becomes invalid and currently requires a Home Assistant reload. With this change, the client re-authenticates on 401/403 and retries once automatically.

Ive also added api eu2 to the const file as this seems to work a bit better for EU!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant