Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

Commit 14684ce

Browse files
committed
Drop the unreachable _files check in the ready interval
_onMessage calls _stopReady() before assigning _files, so the interval was always cleared before _files could become truthy; the guard inside the interval was dead code. The interval now just times out or re-announces.
1 parent dc39dff commit 14684ce

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

web.esphome.io/src/dashboard/ew-web-flash.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ class EWWebFlash extends LitElement {
9898
let waited = 0;
9999
this._readyTimer = window.setInterval(() => {
100100
waited += 500;
101-
if (this._files) {
102-
this._stopReady();
103-
return;
104-
}
105101
if (waited >= 10000) {
106102
// Opener crashed, navigated away, or speaks a mismatched protocol; give
107103
// the user a terminal state instead of an endless spinner.

0 commit comments

Comments
 (0)