Skip to content

Reuse the CheckWatt client and handle API rate limits - #96

Merged
jenshorn merged 5 commits into
masterfrom
feat/persistent-auth
Sep 30, 2026
Merged

jenshorn merged 5 commits into
masterfrom
feat/persistent-auth

Conversation

@jenshorn

Copy link
Copy Markdown
Collaborator

Keep one CheckWatt client per coordinator so authentication tokens are reused across updates, reducing repeated logins.

  • Require pyCheckwatt ~=0.3.0 and Home Assistant 2025.12 or newer.
  • Use Home Assistant’s shared HTTP session.
  • Respect HTTP 429 retry delays and distinguish throttling from invalid credentials.
  • Retry incomplete initialization and failed monetary updates without prematurely advancing their state.

@jenshorn
jenshorn merged commit 3d4866d into master Sep 30, 2026
4 checks passed
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