Files
hassio-battery-lifetime-int…/openspec/changes
rickandCursor 8fab5a5784 openspec(autoclean-orphan-companion-entities): propose phase artifacts
Proposes that prune_removed_older_than's pruned-unique_ids return value
drives a device-registry purge step in both prune call sites
(_async_registry_changed action:remove and _handle_tick), removing the
per-source companion device whose identifiers={(DOMAIN, source_uid)}.
HA's device-registry removal cascades to the entity registry and
removes the eight orphan companion entries automatically.

Modifies coordinator-scheduling capability with one new requirement
covering the cleanup behavior, including the no-op-on-missing-device
and the keep-during-grace-window scenarios.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 11:57:15 +02:00
..