mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-04 15:07:48 +00:00
review
This commit is contained in:
parent
51a69f1042
commit
45316b458f
@ -244,7 +244,8 @@ class HistoryStream {
|
||||
entityId in streamMessage.states
|
||||
) {
|
||||
const entityCombinedHistory = this.combinedHistory[entityId];
|
||||
const lastEntityCombinedHistory = entityCombinedHistory[-1];
|
||||
const lastEntityCombinedHistory =
|
||||
entityCombinedHistory[entityCombinedHistory.length - 1];
|
||||
newHistory[entityId] = entityCombinedHistory.concat(
|
||||
streamMessage.states[entityId]
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user