Skip to content

Commit 37934e7

Browse files
authored
zzzz (#702)
1 parent 20ff88d commit 37934e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/install-web/install-web-dialog.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { openCompileDialog } from "../compile";
1818
import { openInstallWebDialog } from ".";
1919
import { chipFamilyToPlatform } from "../const";
2020
import { esphomeDialogStyles } from "../styles";
21+
import { sleep } from "../util/sleep";
2122

2223
const OK_ICON = "🎉";
2324
const WARNING_ICON = "👀";
@@ -247,6 +248,7 @@ export class ESPHomeInstallWebDialog extends LitElement {
247248
// If a port was passed in, we open it again
248249
if (this.params.port) {
249250
console.log("Reopening port");
251+
await sleep(1000);
250252
await this.params.port.open({
251253
baudRate: esploader.transport.baudrate,
252254
});

0 commit comments

Comments
 (0)