Repository navigation
fix: tree discovery gaps and release v1.40.4 - #179
Merged
cursor[bot] merged 6 commits intoNov 21, 2026
Merged
Conversation
Replaying only the fragments that fit the pending buffer published a partial tree, and discovery then treated the missing groups as gone. Drop that tree whole so startup requests a complete one.
A data chunk without a start used to open a fallback session and attach the XML to the next queued network, or to unknown. Drop the chunk so a reordered fragment cannot corrupt discovery for the wrong network.
A pool rejection resolves the queue item after one warning. Lock that contract so a transient failure cannot stall the queue, and so the failed command is not sent a second time.
The replay map grew with every unique config topic for the life of the process. Cap it, drop the oldest entries, and request a fresh tree after a broker restart so those devices are announced again.
The distribution push used to run before changelog extraction and the source GitHub Release. A failure after that push left Supervisor on the new version with no source release. Create the source release first, so a later store-push failure stays on the previous add-on and the drift check can see the unpublished tag.
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.
Summary
Home Assistant discovery could start from a partial C-Bus tree, or attach a tree fragment to the wrong network. This also caps the discovery config cache, locks the failed-command queue contract, and publishes the source GitHub Release before the add-on store is updated. Closes #174 (already fixed in 1.40.2 and 1.40.3; confirmed on 3.9.0).
Patch release 1.40.4. Tag
v1.40.4after merge so the add-on store updates.Changes
Test plan
npm testpasses locally with no failuresChecklist
package.jsonandhomeassistant-addon/config.yaml(if releasing)CHANGELOG.mdupdated (if releasing)