Remove coordinator pass-through methods, call stores directly #98
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/coordinator-passthroughs"
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?
CampervanCoordinator carried nine pass-through methods (reading, liveness, alarm, and six async_add_*_listener methods) duplicating what the stores already expose. Entities were already reaching stores directly in about 23 places, so the pass-throughs were used inconsistently.
Deletes all nine and points every caller at the owning store instead:
coordinator.readings.reading/liveness/async_add_listener/async_add_node_listener,coordinator.alarms.alarm/async_add_listener,coordinator.modes.async_add_listener,coordinator.traffic.async_add_listener,coordinator.discovery.async_add_listener.No behaviour change. Tested with
tools/check(1223 passed).review-agent pass: clean, no findings. Verified no leftover call sites to the nine removed pass-through methods, no behaviour change in the store calls that replaced them, unused imports (
Alarm,Liveness,Reading) dropped fromcoordinator.py, diff confined to the rename, andtools/checkgreen (1223 passed, 3 skipped).