Add targeted Observe refresh and unsubscribe - #69
Merged
QuiteYellow merged 3 commits intoAug 29, 2026
Conversation
This was referenced Aug 28, 2026
Owner
|
Merging. 570 tests reproduce here, and both the relation lock and the paced One note for the record: orderly close now costs about The dereg question from #67 is the one still open. A quiesced session skips the |
Contributor
Author
|
#71 also carries the paced deregistration sweep into the two-phase shutdown path. The pacing cost stays in the later |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stack order: #67 → #68 → #69. This is 3 of 3 and should merge after #67 and #68. Until those land, the Files view includes their prerequisite commits; the isolated final-layer diff is 9d38bcc...987d46d.
Long-running clients need to repair individual Observe relations without rebuilding a healthy DTLS session or disturbing unrelated subscriptions. They also need to deregister exact paths during entity removal and shutdown without sending the appliance a burst of back-to-back registration traffic.
This change adds those relation operations:
refresh_observes(paths, *, queries_by_href=None)refreshes only the requested hrefs, preserves every existing query variant by default, and accepts a fully validated explicit query override when the caller needs one.(successful_hrefs, failure_count)result reports local send outcomes; it does not claim that the appliance has confirmed a new relation.unsubscribe(href)deregisters and retires every query-qualified relation for that exact path while preserving sibling paths.The API is intentionally transport-level. It does not add Home Assistant policy, capability scheduling, authentication behavior, or a new retry model.
Validation at
987d46db7e21a67e927b87a04c8b15cb182187ab: