mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 14:16:41 +00:00
Give ESP time to restart after write and disable button until initialized
This commit is contained in:
parent
87c95de8f0
commit
4c58f97981
@ -466,6 +466,7 @@ class EwtInstallDialog extends LitElement {
|
|||||||
<ewt-button
|
<ewt-button
|
||||||
slot="primaryAction"
|
slot="primaryAction"
|
||||||
.label=${supportsImprov ? "Next" : "Close"}
|
.label=${supportsImprov ? "Next" : "Close"}
|
||||||
|
.disabled=${this._client === undefined}
|
||||||
dialogAction=${ifDefined(supportsImprov ? undefined : "close")}
|
dialogAction=${ifDefined(supportsImprov ? undefined : "close")}
|
||||||
@click=${!supportsImprov
|
@click=${!supportsImprov
|
||||||
? undefined
|
? undefined
|
||||||
@ -636,7 +637,9 @@ class EwtInstallDialog extends LitElement {
|
|||||||
this._installState = state;
|
this._installState = state;
|
||||||
|
|
||||||
if (state.state === FlashStateType.FINISHED) {
|
if (state.state === FlashStateType.FINISHED) {
|
||||||
this._initialize().then(() => this.requestUpdate());
|
sleep(100)
|
||||||
|
.then(() => this._initialize())
|
||||||
|
.then(() => this.requestUpdate());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
this.port,
|
this.port,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user