feat: Automatically recover from frozen live streams (#2569)
- Closes: #2099
This commit is contained in:
+2
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user