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", "name": "esp-web-tools",
"version": "4.0.2", "version": "4.1.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "esp-web-tools", "name": "esp-web-tools",
"version": "4.0.2", "version": "4.1.0",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@material/mwc-button": "^0.25.3", "@material/mwc-button": "^0.25.3",

View File

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

View File

@ -272,6 +272,9 @@ class EwtInstallDialog extends LitElement {
${showSetupLinks ${showSetupLinks
? html` ? html`
<div class="dashboard-buttons"> <div class="dashboard-buttons">
${this._client!.nextUrl === undefined
? ""
: html`
<div> <div>
<a <a
href=${this._client!.nextUrl} href=${this._client!.nextUrl}
@ -284,6 +287,7 @@ class EwtInstallDialog extends LitElement {
<ewt-button label="Visit Device"></ewt-button> <ewt-button label="Visit Device"></ewt-button>
</a> </a>
</div> </div>
`}
${!this._manifest.home_assistant_domain ${!this._manifest.home_assistant_domain
? "" ? ""
: html` : html`
@ -462,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
@ -632,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,

Binary file not shown.

Binary file not shown.

View File

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