mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-10 09:57:45 +00:00
Add support for streaming history
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user