♻️ Extract _find_switch_capacity to collapse switch-capacity scan #48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/find-switch-capacity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pure, behavior-preserving refactor of
coordinator.py.Collapses the duplicated features→capacities→nature scan (previously in both
_has_switch_capacityand_fetch_switch_state) into a single static_find_switch_capacityhelper, and removes_has_switch_capacity.⚠️ Stacked on #47 — this PR targets
refactor/try-fetch-helper, notmain. Merge #47 first; this PR will then retarget tomain.Note: this aligns
_fetch_switch_statewith the first-match semantics that_has_switch_capacityalready used. The old inner-loopbreakreturned the last feature's match for a multi-feature device — a latent inconsistency, not exercised by any test.ddcb75284f577546f09a