Fix history chart when final sensor state is unavailable (#16852)

This commit is contained in:
karwosts 2023-06-14 08:45:57 -07:00 committed by GitHub
parent 2076a083d3
commit 7182abfec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,6 +376,9 @@ class StateHistoryChartLine extends LitElement {
lastNullDate = date;
}
});
if (lastNullDate !== null) {
pushData(lastNullDate, [null]);
}
}
// Add an entry for final values