Repository navigation
Poll less: skip the stale drain on fresh connections, poll optional paths only when used - #10
Merged
Merged
Conversation
Varitras
commented
Nov 1, 2026
Owner
- A connection opened for a request no longer waits out the stale-line drain.
- Fast paths that only entities disabled by default read (outputs 1 and 2, output meter and clip, standby countdown) are polled only while such an entity is enabled; the first refresh still reads everything. On a KH 750 that is 9 of 21 requests per cycle.
- Entities register their path as coordinator context; tests keep the optional list in step with the entity descriptions.
- README polling section updated.
The drain waits out its 10 ms window whenever it finds nothing; on a socket opened for this very request nothing can be stale.
Entities register their SSC path as coordinator context. On a KH 750, 9 of 21 fast paths served only entities disabled by default.
The coordinator's _listeners is Home Assistant internals, and a listener added before the first refresh made it skip the optional paths.
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.