From d1ce06e36801f386b437a4e212cf717fa7c4f380 Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Tue, 4 Jun 2024 05:21:52 -0400 Subject: [PATCH 1/6] Fix parameter name in zwave_js WS API (#20981) --- src/data/zwave_js.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/zwave_js.ts b/src/data/zwave_js.ts index 9cbc3c1403..a80a17b6bb 100644 --- a/src/data/zwave_js.ts +++ b/src/data/zwave_js.ts @@ -487,14 +487,14 @@ export const stopZwaveExclusion = (hass: HomeAssistant, entry_id: string) => export const zwaveGrantSecurityClasses = ( hass: HomeAssistant, entry_id: string, - security_classes: SecurityClass[], - client_side_auth?: boolean + securityClasses: SecurityClass[], + clientSideAuth?: boolean ) => hass.callWS({ type: "zwave_js/grant_security_classes", entry_id, - security_classes, - client_side_auth, + securityClasses, + clientSideAuth, }); export const zwaveTryParseDskFromQrCode = ( From 2dd7e598d59197823f6df24c0049fb403f38b297 Mon Sep 17 00:00:00 2001 From: Alex van den Hoogen Date: Tue, 4 Jun 2024 14:03:04 +0200 Subject: [PATCH 2/6] Add missing hui-root callback, fixes #20854 (#20975) * Add missing hui-root callback, fixes #20854 * Set scroll event listener on hui-root to passive --- src/panels/lovelace/hui-root.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index ace50a40c6..939d063e82 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -513,6 +513,13 @@ class HUIRoot extends LitElement { }); } + public connectedCallback(): void { + super.connectedCallback(); + window.addEventListener("scroll", this._handleWindowScroll, { + passive: true, + }); + } + public disconnectedCallback(): void { super.disconnectedCallback(); window.removeEventListener("scroll", this._handleWindowScroll); From 22c54b3fea84847cca71aa4d42b9ab7ed4e799c8 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 4 Jun 2024 16:45:54 +0200 Subject: [PATCH 3/6] Fix card editor size on mobile (#20976) --- .../editor/card-editor/hui-dialog-edit-card.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts b/src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts index c2794e6f2c..7c5c20d94a 100644 --- a/src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts +++ b/src/panels/lovelace/editor/card-editor/hui-dialog-edit-card.ts @@ -417,6 +417,11 @@ export class HuiDialogEditCard --dialog-content-padding: 24px 12px; } + .content { + width: calc(90vw - 48px); + max-width: 1000px; + } + @media all and (max-width: 450px), all and (max-height: 500px) { /* overrule the ha-style-dialog max-height on small screens */ ha-dialog { @@ -425,16 +430,15 @@ export class HuiDialogEditCard --dialog-surface-top: 0px; --mdc-dialog-max-width: 100vw; } - } - - .content { - width: 1000px; - max-width: calc(90vw - 48px); + .content { + width: 100%; + max-width: 100%; + } } @media all and (min-width: 451px) and (min-height: 501px) { :host([large]) .content { - width: calc(90vw - 48px); + max-width: none; } } From ab340e13e988c664b24cafe3b79e40ad4cc39772 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 4 Jun 2024 16:46:08 +0200 Subject: [PATCH 4/6] Fix max option saving using keyboard for script mode (#20984) --- .../automation/automation-mode-dialog/dialog-automation-mode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/config/automation/automation-mode-dialog/dialog-automation-mode.ts b/src/panels/config/automation/automation-mode-dialog/dialog-automation-mode.ts index d13a36124e..3b51d985db 100644 --- a/src/panels/config/automation/automation-mode-dialog/dialog-automation-mode.ts +++ b/src/panels/config/automation/automation-mode-dialog/dialog-automation-mode.ts @@ -147,7 +147,7 @@ class DialogAutomationMode extends LitElement implements HassDialog { type="number" name="max" .value=${this._newMax?.toString() ?? ""} - @change=${this._valueChanged} + @input=${this._valueChanged} class="max" > From db82b856e0ff5805cf9e3f7d63e7130a80392045 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 4 Jun 2024 16:46:38 +0200 Subject: [PATCH 5/6] Fix filter card visibility when show empty is false (#20985) --- .../lovelace/cards/hui-entity-filter-card.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/panels/lovelace/cards/hui-entity-filter-card.ts b/src/panels/lovelace/cards/hui-entity-filter-card.ts index efa3d9730a..6dc0bb343f 100644 --- a/src/panels/lovelace/cards/hui-entity-filter-card.ts +++ b/src/panels/lovelace/cards/hui-entity-filter-card.ts @@ -163,14 +163,12 @@ export class HuiEntityFilterCard return false; }); - if ( - entitiesList.length === 0 && - this._config.show_empty === false && - !this.hidden - ) { - this.style.display = "none"; - this.toggleAttribute("hidden", true); - fireEvent(this, "card-visibility-changed", { value: false }); + if (entitiesList.length === 0 && this._config.show_empty === false) { + if (!this.hidden) { + this.style.display = "none"; + this.toggleAttribute("hidden", true); + fireEvent(this, "card-visibility-changed", { value: false }); + } return; } From cd62f064cb12b28e5ec1f625877d6eb6218af57f Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 4 Jun 2024 16:47:00 +0200 Subject: [PATCH 6/6] Bumped version to 20240604.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9448a16a3f..a068c369bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20240603.0" +version = "20240604.0" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md"