refactor(hass): extract discovery domain#4729
Draft
AlCalzone wants to merge 34 commits into
Draft
Conversation
Coverage Report for CI Build 29567758133Warning No base build found for commit Coverage: 43.056%Details
Uncovered Changes
Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats💛 - Coveralls |
AlCalzone
marked this pull request as draft
July 11, 2026 21:11
27 tasks
AlCalzone
force-pushed
the
alcalzone-backend-refactor-socket-handlers
branch
from
July 16, 2026 05:51
fc3970a to
428aa02
Compare
AlCalzone
force-pushed
the
alcalzone-backend-refactor-hass-domain
branch
from
July 16, 2026 06:51
d0a95f8 to
48c2e1b
Compare
AlCalzone
force-pushed
the
alcalzone-backend-refactor-socket-handlers
branch
from
July 16, 2026 12:14
428aa02 to
122277f
Compare
AlCalzone
force-pushed
the
alcalzone-backend-refactor-hass-domain
branch
from
July 16, 2026 13:01
48c2e1b to
d8adedf
Compare
AlCalzone
force-pushed
the
alcalzone-backend-refactor-socket-handlers
branch
from
July 16, 2026 18:56
122277f to
ac5c083
Compare
AlCalzone
force-pushed
the
alcalzone-backend-refactor-hass-domain
branch
from
July 16, 2026 19:23
d8adedf to
7d7c6af
Compare
AlCalzone
force-pushed
the
alcalzone-backend-refactor-socket-handlers
branch
from
July 17, 2026 08:11
ac5c083 to
b9dd3b4
Compare
Move legacy HASS DTOs and editor persistence behind typed domain ports, and replace Gateway's process-global custom catalog with disposable per-instance registries while preserving legacy loader seams. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve the legacy two-watcher import lifecycle through a shared source while each Gateway owns an isolated subscribed catalog view. Dispose views and event listeners across restart and failed teardown, and tolerate legacy malformed catalogs without poisoning hash retries. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Emit the current node projection after concurrent persistence and keep cover STOP writes bound to the cached MQTT mapping even if the live value disappears. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep legacy undefined metadata coercion in entity names and replace vacuous rediscovery and RAW availability checks with exact, non-empty payload assertions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Load discovery and Gateway modules only after the temporary STORE_DIR is active, verify the repository store byte-for-byte, and restore watchers, modules, and environment state during teardown. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Accept the emitter's optional value-change flag while preserving the legacy false default, keeping restart-safe listener bindings strict-neutral. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Assert isolated config, secrets, logs, and concrete watcher paths at import time without racing unrelated parallel logger tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove redundant changed comments and keep repository-store isolation checks stable when logger tests write concurrently. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Ignore only logger-owned repository artifacts across concurrent isolation snapshots. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Clone per-device array containers at fork boundaries so dynamic climate discovery cannot mutate sibling Gateway catalogs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Evict the resolved CommonJS module before watcher reloads so same-path customDevices.js edits propagate to active registry forks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
AlCalzone
force-pushed
the
alcalzone-backend-refactor-hass-domain
branch
from
July 17, 2026 08:49
7d7c6af to
1ca0240
Compare
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.
Extracts the Home Assistant discovery domain from
Gateway.Part of #4722. Stacked on #4728.