Merge pull request #107 from esphome/update-builds

This commit is contained in:
Paulus Schoutsen 2021-11-10 21:42:20 -08:00 committed by GitHub
commit b81c1daf1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 18 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "esp-web-tools",
"version": "4.0.2",
"version": "4.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "esp-web-tools",
"version": "4.0.2",
"version": "4.1.0",
"license": "Apache-2.0",
"dependencies": {
"@material/mwc-button": "^0.25.3",

View File

@ -1,6 +1,6 @@
{
"name": "esp-web-tools",
"version": "4.0.2",
"version": "4.1.0",
"description": "Web tools for ESP devices",
"main": "dist/install-button.js",
"repository": "https://github.com/esphome/web",

View File

@ -272,18 +272,22 @@ class EwtInstallDialog extends LitElement {
${showSetupLinks
? html`
<div class="dashboard-buttons">
<div>
<a
href=${this._client!.nextUrl}
class="has-button"
target="_blank"
@click=${() => {
this._state = "DASHBOARD";
}}
>
<ewt-button label="Visit Device"></ewt-button>
</a>
</div>
${this._client!.nextUrl === undefined
? ""
: html`
<div>
<a
href=${this._client!.nextUrl}
class="has-button"
target="_blank"
@click=${() => {
this._state = "DASHBOARD";
}}
>
<ewt-button label="Visit Device"></ewt-button>
</a>
</div>
`}
${!this._manifest.home_assistant_domain
? ""
: html`
@ -462,6 +466,7 @@ class EwtInstallDialog extends LitElement {
<ewt-button
slot="primaryAction"
.label=${supportsImprov ? "Next" : "Close"}
.disabled=${this._client === undefined}
dialogAction=${ifDefined(supportsImprov ? undefined : "close")}
@click=${!supportsImprov
? undefined
@ -632,7 +637,9 @@ class EwtInstallDialog extends LitElement {
this._installState = state;
if (state.state === FlashStateType.FINISHED) {
this._initialize().then(() => this.requestUpdate());
sleep(100)
.then(() => this._initialize())
.then(() => this.requestUpdate());
}
},
this.port,

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,7 @@
{
"name": "ESPHome",
"version": "2021.11.0-dev",
"version": "2021.12.0-dev",
"home_assistant_domain": "esphome",
"new_install_skip_erase": true,
"builds": [
{
"chipFamily": "ESP32",