Repository navigation
fix: handle profile transition and maintenance rejection - #23
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.
Behavior
Switching from MQTT to the API profile could restore persisted Storage state. A healthy API device then showed the Storage page and slept for 24 hours, although the API profile has no Storage control. API boot now clears local Storage state. It preserves low-battery hysteresis and does not change the broker's retained command.
A rejected Maintenance request sampled only the battery, then rendered plant values that had never been acquired. Rejection now returns to full normal acquisition unless Storage is requested. The rejection status survives that cycle and its retained OFF echo.
Verification
python3 -B -m unittest discover -s tests -v; pinned ESPHome Python runstest_api_boot.pyseparately.0x0a11c39a, MQTT0x0bc88d1f. Credentials and broker are synthetic; fonts and label are local fixtures. No device, shared builder or live fleet operation is used.AI assistance
Codex assisted implementation and verification. The author checked source behavior, regressions, semantic diff and firmware compilation. Core hardware, calibration and fleet configuration are unchanged.
CodeRabbit review
Review evidence: pending publication.
Summary by CodeRabbit