Add support for streaming history

This commit is contained in:
J. Nick Koston
2023-01-15 14:35:06 -10:00
parent 1ec5172370
commit 5b3a13f8d4

View File

@@ -79,12 +79,12 @@ interface EntityHistoryState {
lu: number; lu: number;
} }
interface StateDict<T> { interface EntityStateDict<T> {
[Key: string]: T; [entity_id: string]: T;
} }
export interface HistoryStreamMessage { export interface HistoryStreamMessage {
states: StateDict<EntityHistoryState[]>; states: EntityStateDict<EntityHistoryState[]>;
start_time?: number; // Start time of this historical chunk start_time?: number; // Start time of this historical chunk
end_time?: number; // End time of this historical chunk end_time?: number; // End time of this historical chunk
} }