Repository navigation
fix(api): honour 429 retry-after instead of failing immediately #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c472e72
fix(api): honour 429 retry-after instead of failing immediately
flupkede 430c569
feat(velis): add Velis holiday support
flupkede 5dc2212
chore: drop local version suffix, fix Sonar test smells
flupkede 13aec65
refactor: literal syntax + extracted rate-limit handlers
flupkede 853b5a4
[feat] Nuos Split GREEN (0) via R2 web-app SetData; api/v2 operativeM…
flupkede 0d5daca
[test] cover R2 read+parse failure shapes and fresh-login retry
flupkede f3dc761
Merge branch 'main' into fix/429-backoff
astrinh0 f173bcb
[fix] review round 2026-11-12: per-instance 429 window, sync R2 path,…
flupkede 3071974
Merge upstream/main into fix/429-backoff
flupkede ace3bb8
[refactor] drop duplicated Velis holiday API pair; delegate to main's…
flupkede 52a017e
[fix] run the PR's test modules under the CI unittest runner (no pytest)
flupkede 9ab0a1a
[fix] keep IMEMORY as a deprecated alias of AUTO (public API compat)
flupkede File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required: This change routes only the async setter through R2. The synchronous sibling set_water_heater_operation_mode() still calls set_nuos_mode() for GREEN (0), which this PR says the api/v2 route silently ignores. Synchronous callers therefore still cannot set GREEN. Add the equivalent sync R2 path or handle GREEN in the sync setter.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in f173bcb: added the sync twin —
set_nuos_mode_via_r2()(requests-based R2 login/read/POST with the same one-fresh-login retry on a failed read), and the syncset_water_heater_operation_mode()now routes GREEN through it while COMFORT/FAST keep the direct route. The sync local echo also went intoMODEbefore; it now writesOP_MODElike the async setter (mode is the plant-mode field and never changes on an operativeMode write). Covered by 4 new tests: full sync flow (login form → read → envelope with opMode 0), fresh-login retry, and GREEN/COMFORT routing.