Skip to content

Conversation

KiraPC
Copy link
Contributor

@KiraPC KiraPC commented Oct 21, 2025

Description:

Related issue (if applicable): fixes #

Checklist:

  • Local tests with tox run successfully PR cannot be meged unless tests pass
  • Changes tested locally to ensure platform still works as intended
  • Tests added to verify new code works

@KiraPC
Copy link
Contributor Author

KiraPC commented Oct 21, 2025

@fronzbot Hello, this PR is intended to raise and AuthenticationError when credentials expires. Basically I don't know if refresh_token will expires in future, so when it expires a new automatic refresh is impossible.

In HA the error could be catch (I already implemented this) to trigger the reauth flow.

What do you think?

@fronzbot
Copy link
Owner

Yeah I like this approach, it's clean and explicit

@fronzbot fronzbot merged commit 5bbf219 into fronzbot:dev Oct 22, 2025
14 of 15 checks passed
@fronzbot
Copy link
Owner

I'll release 0.24.1 later today to include this

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.

2 participants