feat: Automatically recover from frozen live streams (#2569)

- Closes: #2099
This commit is contained in:
Dermot Duffy
2026-07-07 21:37:24 -07:00
committed by GitHub
parent 9f956fe89f
commit fb1bbc739e
73 changed files with 3321 additions and 364 deletions
+2 -3
View File
@@ -1,3 +1,4 @@
import type { UnsubscribeCallback } from '../types';
import type { HomeAssistant } from './types';
/**
@@ -8,9 +9,7 @@ import type { HomeAssistant } from './types';
*/
export type HASSListener = (hass: HomeAssistant, oldHass: HomeAssistant | null) => void;
export type HASSUnlistenCallback = () => void;
export interface HASSSource {
getHASS(): HomeAssistant | null;
addListener(listener: HASSListener): HASSUnlistenCallback;
addListener(listener: HASSListener): UnsubscribeCallback;
}