[IRRIGOAPI-116] Add boot-time HA readiness probe to prevent false alerts #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/IRRIGOAPI-116"
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?
Ticket
IRRIGOAPI-116 Boot-time valve reconcile races Home Assistant startup, causing false ha-call-failed alert
Summary
waitForHaReady()to the HA data layer: pollsGET <HA_URL>/api/every 2 s until HA responds 2xx orHA_BOOT_TIMEOUT_MSelapses (default 30 s)waitForHaReady()at the start ofrunBootSequence, beforereconcileCycleAndRelayState, so the reconcile sweep only runs once HA is actually listeningloadInFlightCyclesfrom the injectedscheduleEntriesRepodirectly into the reconciler, removing a dependency on module-level state and making boot tests runnable in isolation