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