mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-09 17:37:46 +00:00
Add support for streaming history
This commit is contained in:
parent
1ec5172370
commit
5b3a13f8d4
@ -79,12 +79,12 @@ interface EntityHistoryState {
|
||||
lu: number;
|
||||
}
|
||||
|
||||
interface StateDict<T> {
|
||||
[Key: string]: T;
|
||||
interface EntityStateDict<T> {
|
||||
[entity_id: string]: T;
|
||||
}
|
||||
|
||||
export interface HistoryStreamMessage {
|
||||
states: StateDict<EntityHistoryState[]>;
|
||||
states: EntityStateDict<EntityHistoryState[]>;
|
||||
start_time?: number; // Start time of this historical chunk
|
||||
end_time?: number; // End time of this historical chunk
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user