We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ff88d commit 37934e7Copy full SHA for 37934e7
src/install-web/install-web-dialog.ts
@@ -18,6 +18,7 @@ import { openCompileDialog } from "../compile";
18
import { openInstallWebDialog } from ".";
19
import { chipFamilyToPlatform } from "../const";
20
import { esphomeDialogStyles } from "../styles";
21
+import { sleep } from "../util/sleep";
22
23
const OK_ICON = "🎉";
24
const WARNING_ICON = "👀";
@@ -247,6 +248,7 @@ export class ESPHomeInstallWebDialog extends LitElement {
247
248
// If a port was passed in, we open it again
249
if (this.params.port) {
250
console.log("Reopening port");
251
+ await sleep(1000);
252
await this.params.port.open({
253
baudRate: esploader.transport.baudrate,
254
});
0 commit comments