From 2d74873db0a2fe9c9d3aab5306e34de4b6c3aa4e Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 12 Apr 2023 14:07:54 +0200 Subject: [PATCH 1/5] Prevent edit and move view button triggered in the same time (#16143) --- src/panels/lovelace/hui-root.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 1797c30fae..a5fb2ded57 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -868,6 +868,7 @@ class HUIRoot extends LitElement { } private _handleViewSelected(ev) { + ev.preventDefault(); const viewIndex = ev.detail.selected as number; if (viewIndex !== this._curView) { From b15b0e25d6156f5ddcb84ba92d80cfb53c1eac2f Mon Sep 17 00:00:00 2001 From: akston <169469+akston@users.noreply.github.com> Date: Tue, 11 Apr 2023 09:08:29 -0400 Subject: [PATCH 2/5] Fix cropped person image transparency (#16112) --- src/panels/config/person/dialog-person-detail.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/panels/config/person/dialog-person-detail.ts b/src/panels/config/person/dialog-person-detail.ts index 5b35fb18d6..88c627c808 100644 --- a/src/panels/config/person/dialog-person-detail.ts +++ b/src/panels/config/person/dialog-person-detail.ts @@ -33,7 +33,6 @@ const includeDomains = ["device_tracker"]; const cropOptions: CropOptions = { round: true, - type: "image/jpeg", quality: 0.75, aspectRatio: 1, }; From e781be885d3695f088210a7592db603d06d2dbde Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 13 Apr 2023 10:56:52 +0200 Subject: [PATCH 3/5] Fix context provider not updated on initializing of hass object (#16159) --- src/state/context-mixin.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/state/context-mixin.ts b/src/state/context-mixin.ts index 9b8e2a8bb7..d3bbc3ead6 100644 --- a/src/state/context-mixin.ts +++ b/src/state/context-mixin.ts @@ -82,6 +82,15 @@ export const contextMixin = >( }), }; + protected hassConnected() { + super.hassConnected(); + for (const [key, value] of Object.entries(this.hass!)) { + if (key in this.__contextProviders) { + this.__contextProviders[key]!.setValue(value); + } + } + } + protected _updateHass(obj: Partial) { super._updateHass(obj); for (const [key, value] of Object.entries(obj)) { From 21645c2361bbe0703e7c26af309f75c42c86d139 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 13 Apr 2023 11:01:42 +0200 Subject: [PATCH 4/5] Bumped version to 20230411.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1d47ad7dad..955da413bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20230411.0" +version = "20230411.1" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md" From a9984656007c179e1bc8cf55f79b5f15ec04c832 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 13 Apr 2023 21:34:06 +0200 Subject: [PATCH 5/5] Fix demo deployment (#16178 Update demo_deployment.yaml --- .github/workflows/demo_deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/demo_deployment.yaml b/.github/workflows/demo_deployment.yaml index 56bb35996d..025c461ab2 100644 --- a/.github/workflows/demo_deployment.yaml +++ b/.github/workflows/demo_deployment.yaml @@ -17,7 +17,7 @@ jobs: deploy_dev: runs-on: ubuntu-latest name: Demo Development - if: github.event_name != 'push' || github.ref != 'master' + if: github.event_name != 'push' || github.ref_name != 'master' environment: name: Demo Development url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }} @@ -53,7 +53,7 @@ jobs: deploy_master: runs-on: ubuntu-latest name: Demo Production - if: github.event_name == 'push' && github.ref == 'master' + if: github.event_name == 'push' && github.ref_name == 'master' environment: name: Demo Production url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}