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
45316b458f
commit
e1d17f3d3a
@ -249,7 +249,9 @@ class HistoryStream {
|
||||
newHistory[entityId] = entityCombinedHistory.concat(
|
||||
streamMessage.states[entityId]
|
||||
);
|
||||
if (streamMessage.states[entityId][0] > lastEntityCombinedHistory) {
|
||||
if (
|
||||
streamMessage.states[entityId][0].lu > lastEntityCombinedHistory.lu
|
||||
) {
|
||||
// If the history is out of order we have to sort it.
|
||||
newHistory[entityId] = newHistory[entityId].sort(
|
||||
(a, b) => a.lu - b.lu
|
||||
|
Loading…
x
Reference in New Issue
Block a user