fix: Prevent premature reinitialization when stale HA reconnects (#2717)

- Closes: #2714
This commit is contained in:
Dermot Duffy
2026-08-29 13:47:38 -07:00
committed by GitHub
parent fb53681978
commit 4b101545cc
15 changed files with 333 additions and 131 deletions
+5
View File
@@ -11,5 +11,10 @@ export type HASSListener = (hass: HomeAssistant, oldHass: HomeAssistant | null)
export interface HASSSource {
getHASS(): HomeAssistant | null;
// Whether the current HASS is ready to be talked to. Consumers must ask here
// rather than testing the HASS themselves.
isReady(): boolean;
addListener(listener: HASSListener): UnsubscribeCallback;
}