mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-05 15:37:47 +00:00
cleanup
This commit is contained in:
parent
87d781f786
commit
c1e905e03a
@ -102,9 +102,6 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
|
|||||||
this._subscribed = subscribeHistoryStatesWindow(
|
this._subscribed = subscribeHistoryStatesWindow(
|
||||||
this.hass!,
|
this.hass!,
|
||||||
(combinedHistory) => {
|
(combinedHistory) => {
|
||||||
// "recent" means start time is a sliding window
|
|
||||||
// so we need to calculate an expireTime to
|
|
||||||
// purge old events
|
|
||||||
if (!this._subscribed) {
|
if (!this._subscribed) {
|
||||||
// Message came in before we had a chance to unload
|
// Message came in before we had a chance to unload
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user