mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 02:46:38 +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
|
||||
pushData([endTime].concat(prevValues.slice(1)), false);
|
||||
if (prevValues) {
|
||||
pushData([endTime].concat(prevValues.slice(1)), false);
|
||||
}
|
||||
|
||||
dataTable.addRows(data);
|
||||
return dataTable;
|
||||
|
@ -126,7 +126,9 @@ class StateHistoryChartTimeline extends
|
||||
}
|
||||
});
|
||||
|
||||
addRow(entityDisplay, prevState, prevLastChanged, endTime);
|
||||
if (prevState !== null) {
|
||||
addRow(entityDisplay, prevState, prevLastChanged, endTime);
|
||||
}
|
||||
numTimelines++;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user