Repository navigation
Fix retained metadata contracts and bound snapshot refresh memory - #21
Merged
Merged
Conversation
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
Persisted configuration edits previously emitted only non-retained patches, leaving offline subscribers with stale metadata. Publish a retained
meta/configcompanion, advertise saved calibration/display/Time/HomeAssistant values, and include physical switch configuration with live switch state. Refresh persisted metadata one serialized snapshot at a time after command replies drain, reducing allocation pressure on CircuitPython boards.Document the Sensorius subscriber migration and broker/heap validation procedure. Firmware version:
v0.26.263.3.Related issue
No separate issue; this focused change corrects the retained metadata contract and refresh behavior observed during operator validation.
Verification
ruff check .: passed.pytest -q: 893 passed.git diff --check: passed.scripts/nodus_mpy.sh --target pico2w --no-stage-libs: compiled 70 modules with CircuitPython 9.2.8.scripts/nodus_mpy.sh --target xesp32s3 --no-stage-libs: compiled 70 modules with CircuitPython 10.2.1.docs/metadata_validation.md. The latest confirmation did not specify board/profile/duration/filesystem mode or attach a new capture; no additional hardware run was performed during PR publication. Full two-board acceptance coverage is not claimed.Checklist
ruff check .passes.pytest -qpasses.