Skip to content

Commit 5abdbde

Browse files
author
David Buezas
committed
Recover from failed fetch
1 parent df9d53a commit 5abdbde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Cache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export default class Cache {
5353
entityNames: string[],
5454
hass: HomeAssistant
5555
) {
56-
return (this.busy = this.busy.then(() =>
57-
this._update(range, removeOutsideRange, entityNames, hass)
58-
));
56+
return (this.busy = this.busy
57+
.catch(() => {})
58+
.then(() => this._update(range, removeOutsideRange, entityNames, hass)));
5959
}
6060

6161
private removeOutsideRange(range: TimestampRange) {

0 commit comments

Comments
 (0)