Skip to content

fix: throttle concurrent API calls and 429 backoff - #477

Open
dennismdejong wants to merge 1 commit into
sockless-coding:masterfrom
dennismdejong:fix/369-rate-limit-429
Open

fix: throttle concurrent API calls and 429 backoff#477
dennismdejong wants to merge 1 commit into
sockless-coding:masterfrom
dennismdejong:fix/369-rate-limit-429

Conversation

@dennismdejong

Copy link
Copy Markdown

Closes #369

Root cause: all device/energy coordinators refresh in parallel with no global throttling, triggering Panasonic HTTP 429 for accounts with many devices.

Fix: shared asyncio.Semaphore(3) around cloud calls (device/energy refresh and command apply), small jitter, and a 429-aware exponential backoff (x4 multiplier, 30s floor).

Verification: compile-only (no HA test harness in this repo). Behavior is conservative and degrades gracefully under rate limiting.

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.

More than 10 Devices - Error 429

1 participant