Repository navigation
docs: describe app behaviour without reproducing vendor code - #36
Merged
Merged
Conversation
Replace the reconstructed vendor snippet in §0e.2 with a description of how the flag words decode, and drop the disassembly offsets, function IDs and pseudo-assembly listings that ran through the document, including the pairing screen listings in §1.1a (now a table of the on-screen instructions). The bit tables, fixture cross-checks and payload examples are unchanged, so every claim is still traceable to a capture in tests/sample_diagnostics/. Adds a short sources section naming what actually backs each claim.
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.
Proposed change
Follow-up to the HACS review comment on hacs/default#13736:
This rewrites the document so it describes app behaviour in our own words and carries no vendor-derived code.
The flagged snippet (§0e.2) was a reconstructed
bits.split('').reverse().forEach(...)block. It is now a description of how every flag word decodes (value read as binary, template key n = bit n, LSB first), plus a corroboration sentence tying that convention to the issue #30 capture:ctrlFlags: 4andstateFlags: 8decode tohighPressureLowPressureandisWaitFlowunder the HP10 tables — which is what the app displayed — versus "compressor on" and no state under the HP tables. Same information, no code.Disassembly offsets and function IDs removed throughout — around 60 references:
parseHpStateFlags#12188 @0x003eec3e… #12191, and the shared-body code block#19970,#19969,#21178,#12209,#14514,#14522,#20240,#21718,#14049–#14072,#14676,#25969disasm byte ~11911693–11913900,0x004d55c7,0x000280,0x000290,0x0002ab,0x0055fa6bLoadConstInt/StrictEq/JmpFalse) — now tables of the on-screen instructions keyed byremoteUiPidand wizard typetests/PoolSync_4.73/hbctool_output.hasm"source of truth" statements — now cite the issue Push-link always ends in link_timeout (Auth button pressed, no password returned_ #30 capture, thet75-*/sq160r-*fixtures and the app's own UIKept, unchanged: every bit table (stateFlags, ctrlFlags, faults), the fixture cross-checks, the PID→firmware table, the fault-name tables, and all
tests/sample_diagnostics/references, so every claim stays traceable to a capture.Also cleaned up: "decompiled app" → "app behaviour", "from APK Decompilation" dropped from three headings, and §0a replaced (it documented the APK extraction methodology) with a short "Sources" section naming what actually backs each claim: live API traffic, user packet captures, and observed app behaviour.
The verbatim UI strings ("Press AUTH on the heat pump display:", etc.) stay — that is user-facing text, not code, and it is the factual content of that section.
Type of change
Additional information
Checklist
ruff format homeassistant tests)Notes
Docs only — no code, no manifest or version change.
utils/quick_lint.shpasses (36 files already formatted). Code fences balanced, no duplicate headings, no empty sections.