mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 13:26:34 +00:00
Fix history panel (#757)
This commit is contained in:
parent
5085c78f7e
commit
9e2396375e
@ -236,7 +236,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add an entry for final values
|
// Add an entry for final values
|
||||||
|
if (prevValues) {
|
||||||
pushData([endTime].concat(prevValues.slice(1)), false);
|
pushData([endTime].concat(prevValues.slice(1)), false);
|
||||||
|
}
|
||||||
|
|
||||||
dataTable.addRows(data);
|
dataTable.addRows(data);
|
||||||
return dataTable;
|
return dataTable;
|
||||||
|
@ -126,7 +126,9 @@ class StateHistoryChartTimeline extends
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (prevState !== null) {
|
||||||
addRow(entityDisplay, prevState, prevLastChanged, endTime);
|
addRow(entityDisplay, prevState, prevLastChanged, endTime);
|
||||||
|
}
|
||||||
numTimelines++;
|
numTimelines++;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user