From 443921a97cf03a7f58492cf3f919ca148d25407f Mon Sep 17 00:00:00 2001 From: Wendelin <12148533+wendevlin@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:41:21 +0100 Subject: [PATCH 1/6] Automate supervisor & landing-page release (#22959) * Automate supervisor & landing-page release * Add no prerelease condition to supervisor/landing-page release * Prepare release workflow for testing * Add release permissions to create PR * Add supervisor, landingpage release to assets * Create test draft release to test * Fix hassio release path * Fix workflow permission for test reasons * Revert test settings --- .github/workflows/release.yaml | 55 +++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 641ea5e7cf14..59d085a2aee9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,7 +4,6 @@ on: release: types: - published - workflow_dispatch: env: PYTHON_VERSION: "3.12" @@ -82,3 +81,57 @@ jobs: arch: amd64 wheels-key: ${{ secrets.WHEELS_KEY }} requirements: "requirements.txt" + + release-landing-page: + name: Release landing-page frontend + if: github.event.release.prerelease == false + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4.2.2 + - name: Setup Node + uses: actions/setup-node@v4.1.0 + with: + node-version-file: ".nvmrc" + cache: yarn + - name: Install dependencies + run: yarn install + - name: Download Translations + run: ./script/translations_download + env: + LOKALISE_TOKEN: ${{ secrets.LOKALISE_TOKEN }} + - name: Build landing-page + run: landing-page/script/build_landing_page + - name: Tar folder + run: tar -czf landing-page/home_assistant_frontend_landingpage-${{ github.event.release.tag_name }}.tar.gz -C landing-page/dist . + - name: Upload release asset + uses: softprops/action-gh-release@v2.1.0 + with: + files: landing-page/home_assistant_frontend_landingpage-${{ github.event.release.tag_name }}.tar.gz + + release-supervisor: + name: Release supervisor frontend + if: github.event.release.prerelease == false + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4.2.2 + - name: Setup Node + uses: actions/setup-node@v4.1.0 + with: + node-version-file: ".nvmrc" + cache: yarn + - name: Install dependencies + run: yarn install + - name: Download Translations + run: ./script/translations_download + env: + LOKALISE_TOKEN: ${{ secrets.LOKALISE_TOKEN }} + - name: Build supervisor + run: hassio/script/build_hassio + - name: Tar folder + run: tar -czf hassio/home_assistant_frontend_supervisor-${{ github.event.release.tag_name }}.tar.gz -C hassio/build . + - name: Upload release asset + uses: softprops/action-gh-release@v2.1.0 + with: + files: hassio/home_assistant_frontend_supervisor-${{ github.event.release.tag_name }}.tar.gz From 0df8b96133de92316fe320d48b6ee41b8f9feb76 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:45:25 -0800 Subject: [PATCH 2/6] No script entities in scenes (#23192) --- src/data/scene.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/scene.ts b/src/data/scene.ts index ee56c30c2d88..750fdf9135ab 100644 --- a/src/data/scene.ts +++ b/src/data/scene.ts @@ -17,6 +17,7 @@ export const SCENE_IGNORED_DOMAINS = [ "person", "scene", "schedule", + "script", "sensor", "sun", "update", From 829de4a0739235bc0e5a2b3fb23d714ff3dabceb Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:06:18 +0300 Subject: [PATCH 3/6] Fix "Integration entries" page for yaml-based integrations (#23201) * Update ha-config-integration-page.ts * prettier --- .../ha-config-integration-page.ts | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/panels/config/integrations/ha-config-integration-page.ts b/src/panels/config/integrations/ha-config-integration-page.ts index f44a03b00fad..33f528408564 100644 --- a/src/panels/config/integrations/ha-config-integration-page.ts +++ b/src/panels/config/integrations/ha-config-integration-page.ts @@ -627,19 +627,18 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { "ui.panel.config.integrations.integration_page.no_entries" )} ` - : nothing} - - ${normalEntries.map( - (item, index) => - html`${this._renderConfigEntry(item)} - ${index < normalEntries.length - 1 - ? html` ` - : nothing}` - )} - + : html` + ${normalEntries.map( + (item, index) => + html`${this._renderConfigEntry(item)} + ${index < normalEntries.length - 1 + ? html` ` + : nothing}` + )} + `}
${this._manifest?.integration_type @@ -1490,7 +1489,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { padding-bottom: 0; } .no-entries { - padding-top: 12px; + padding: 12px 16px; } .logo-container { display: flex; From ddd2c177b5adcdc205ef733a44aed12761c5bbd7 Mon Sep 17 00:00:00 2001 From: Christopher Fenner <9592452+CFenner@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:21:34 +0100 Subject: [PATCH 4/6] Correct overwriting integration labelling on integrations page (#23206) * Update ha-config-integration-page.ts fixes #22776 * update icon color --------- Co-authored-by: Petar Petrov --- .../integrations/ha-config-integration-page.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/panels/config/integrations/ha-config-integration-page.ts b/src/panels/config/integrations/ha-config-integration-page.ts index 33f528408564..daad09dece2d 100644 --- a/src/panels/config/integrations/ha-config-integration-page.ts +++ b/src/panels/config/integrations/ha-config-integration-page.ts @@ -368,11 +368,12 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { ` : nothing} ${this._manifest?.is_built_in === false - ? html`
- + ? html`` @@ -1529,6 +1532,9 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { .integration-info.warn ha-svg-icon { color: var(--warning-color); } + .integration-info.error ha-svg-icon { + color: var(--error-color); + } .integration-info.info ha-svg-icon { color: var(--info-color); } From 629ae3fbf3e7b715608824e22812d102974c971a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 8 Dec 2024 16:32:43 -0500 Subject: [PATCH 5/6] Fix voice debug link (#23214) --- .../config/voice-assistants/assist-pref.ts | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/panels/config/voice-assistants/assist-pref.ts b/src/panels/config/voice-assistants/assist-pref.ts index 8692d95680b1..86c1f0a60bba 100644 --- a/src/panels/config/voice-assistants/assist-pref.ts +++ b/src/panels/config/voice-assistants/assist-pref.ts @@ -42,6 +42,7 @@ import { showVoiceAssistantPipelineDetailDialog } from "./show-dialog-voice-assi import { showVoiceCommandDialog } from "../../../dialogs/voice-command-dialog/show-ha-voice-command-dialog"; import { stopPropagation } from "../../../common/dom/stop_propagation"; import { computeDomain } from "../../../common/entity/compute_domain"; +import { navigate } from "../../../common/navigate"; @customElement("assist-pref") export class AssistPref extends LitElement { @@ -159,14 +160,16 @@ export class AssistPref extends LitElement { )} - - - ${this.hass.localize( - "ui.panel.config.voice_assistants.assistants.pipeline.detail.debug" - )} - - - + + ${this.hass.localize( + "ui.panel.config.voice_assistants.assistants.pipeline.detail.debug" + )} + + Date: Mon, 9 Dec 2024 15:59:07 +0100 Subject: [PATCH 6/6] Bumped version to 20241127.7 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 69577d089e06..bcfcbba5eee7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20241127.6" +version = "20241127.7" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md"