From fd95ab55180d259eb291610d382857b03dae7d86 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 23 Dec 2024 12:59:05 +0100 Subject: [PATCH 01/10] Revert "Bump softprops/action-gh-release from 2.1.0 to 2.2.0" (#23393) Revert "Bump softprops/action-gh-release from 2.1.0 to 2.2.0 (#23300)" This reverts commit 65458538a70d1e239a998ca3d522714200d757ea. --- .github/workflows/release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 253159226c..4f9f0cea59 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -55,7 +55,7 @@ jobs: script/release - name: Upload release assets - uses: softprops/action-gh-release@v2.2.0 + uses: softprops/action-gh-release@v2.1.0 with: files: | dist/*.whl @@ -107,7 +107,7 @@ jobs: - 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.2.0 + uses: softprops/action-gh-release@v2.1.0 with: files: landing-page/home_assistant_frontend_landingpage-${{ github.event.release.tag_name }}.tar.gz @@ -136,6 +136,6 @@ jobs: - 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.2.0 + uses: softprops/action-gh-release@v2.1.0 with: files: hassio/home_assistant_frontend_supervisor-${{ github.event.release.tag_name }}.tar.gz From 061b6af81217bf749209f9f88b011f11cd233fc0 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 23 Dec 2024 14:23:51 +0100 Subject: [PATCH 02/10] Fix search bar styling (#23396) --- src/components/ha-outlined-field.ts | 8 -------- src/components/ha-outlined-text-field.ts | 5 +++-- .../integrations/ha-config-integrations-dashboard.ts | 7 ++++--- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/components/ha-outlined-field.ts b/src/components/ha-outlined-field.ts index 88050e7734..694c9e538c 100644 --- a/src/components/ha-outlined-field.ts +++ b/src/components/ha-outlined-field.ts @@ -22,14 +22,6 @@ export class HaOutlinedField extends MdOutlinedField { border-end-start-radius: var(--_container-shape-end-start); border-end-end-radius: var(--_container-shape-end-end); } - .with-start .start { - margin-inline-end: var(--ha-outlined-field-start-margin, 4px); - margin-inline-start: initial; - } - .with-end .end { - margin-inline-start: var(--ha-outlined-field-end-margin, 4px); - margin-inline-end: initial; - } `, ]; } diff --git a/src/components/ha-outlined-text-field.ts b/src/components/ha-outlined-text-field.ts index 757478d0b3..026bce0b25 100644 --- a/src/components/ha-outlined-text-field.ts +++ b/src/components/ha-outlined-text-field.ts @@ -28,8 +28,9 @@ export class HaOutlinedTextField extends MdOutlinedTextField { --md-outlined-field-container-shape-end-end: 10px; --md-outlined-field-container-shape-end-start: 10px; --md-outlined-field-focus-outline-width: 1px; - --ha-outlined-field-start-margin: -4px; - --ha-outlined-field-end-margin: -4px; + --md-outlined-field-with-leading-content-leading-space: 8px; + --md-outlined-field-with-trailing-content-trailing-space: 8px; + --md-outlined-field-content-space: 8px; --mdc-icon-size: var(--md-input-chip-icon-size, 18px); } .input { diff --git a/src/panels/config/integrations/ha-config-integrations-dashboard.ts b/src/panels/config/integrations/ha-config-integrations-dashboard.ts index 3b7c36db92..ffd3a9471f 100644 --- a/src/panels/config/integrations/ha-config-integrations-dashboard.ts +++ b/src/panels/config/integrations/ha-config-integrations-dashboard.ts @@ -436,9 +436,8 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) { > ${this.narrow ? html` -
+
- Set up automatic backups + Set up backups

- Backups are essential to a reliable smart home. They protect your - setup against failures and allows you to quickly have a working - system again. It is recommended to create a daily backup and keep - backups of the last 3 days on two different locations. And one of - them is off-site. + Backups are essential for a reliable smart home. They help protect + the work you've put into setting up your smart home, and if the + worst happens, you can get back up and running quickly. It is + recommended that you create a backup every day. You should keep + three backups in at least two different locations, one of which + should be off-site.

- - Set up automatic backups - + Set up backups
`; diff --git a/src/panels/config/backup/dialogs/dialog-backup-onboarding.ts b/src/panels/config/backup/dialogs/dialog-backup-onboarding.ts index b70ed88102..2a8ff15bf4 100644 --- a/src/panels/config/backup/dialogs/dialog-backup-onboarding.ts +++ b/src/panels/config/backup/dialogs/dialog-backup-onboarding.ts @@ -287,13 +287,14 @@ class DialogBackupOnboarding extends LitElement implements HassDialog { src="/static/images/voice-assistant/hi.png" alt="Casita Home Assistant logo" /> -

Set up your automatic backups

+

Set up backups

- Backups are essential to a reliable smart home. They protect your - setup against failures and allows you to quickly have a working - system again. It is recommended to create a daily backup and keep - backups of the last 3 days on two different locations. And one of - them is off-site. + Backups are essential for a reliable smart home. They help protect + the work you've put into setting up your smart home, and if the + worst happens, you can get back up and running quickly. It is + recommended that you create a backup every day. You should keep + three backups in at least two different locations, one of which + should be off-site.

`; @@ -327,21 +328,23 @@ class DialogBackupOnboarding extends LitElement implements HassDialog { case "setup": return html`

- It is recommended to create a daily backup and keep backups of the - last 3 days on two different locations. And one of them is off-site. + It is recommended that you create a backup every day. You should + keep three backups in at least two different locations, one of which + should be off-site. Once you make your selection, your first backup + will begin.

Recommended settings - Set the proven settings of daily backup. + Backup everything daily, keeping three days of backups Custom settings - Select your own automation, data and locations + Select when, where, and what to backup diff --git a/src/panels/config/backup/dialogs/dialog-change-backup-encryption-key.ts b/src/panels/config/backup/dialogs/dialog-change-backup-encryption-key.ts index ac8ae0bae6..1020083e3a 100644 --- a/src/panels/config/backup/dialogs/dialog-change-backup-encryption-key.ts +++ b/src/panels/config/backup/dialogs/dialog-change-backup-encryption-key.ts @@ -152,7 +152,7 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog { Download old emergency kit - We recommend to save this encryption key somewhere secure. + We recommend saving this encryption key file somewhere secure. @@ -164,9 +164,10 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog { case "new": return html`

- All next backups will use the new encryption key. We recommend to - save this key somewhere secure. As you can only restore your data - with the backup encryption key. + Keep this encryption key in a safe place, as you will need it to + access your backup, allowing it to be restored. Either record the + characters below or download them as an emergency kit file. + Encryption keeps your backups private and secure.

${this._newEncryptionKey}

@@ -179,7 +180,7 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog { Download new emergency kit - We recommend to save this encryption key somewhere secure. + We recommend saving this encryption key file somewhere secure. diff --git a/src/panels/config/backup/ha-config-backup-details.ts b/src/panels/config/backup/ha-config-backup-details.ts index 1bdc57110e..248913fe5e 100644 --- a/src/panels/config/backup/ha-config-backup-details.ts +++ b/src/panels/config/backup/ha-config-backup-details.ts @@ -125,7 +125,8 @@ class HaConfigBackupDetails extends LitElement { : !this._backup ? html`` : html` - + +
Backup
@@ -145,7 +146,8 @@ class HaConfigBackupDetails extends LitElement {
- + +
Select what to restore
- + +
Locations
${this._agents.map((agent) => { @@ -355,7 +358,7 @@ class HaConfigBackupDetails extends LitElement { margin-bottom: 24px; } .card-content { - padding: 0 20px 8px 20px; + padding: 0 20px; } .card-actions { display: flex; @@ -411,6 +414,9 @@ class HaConfigBackupDetails extends LitElement { .dot.error { background-color: var(--error-color); } + .card-header { + padding-bottom: 8px; + } `; } diff --git a/src/panels/config/backup/ha-config-backup-settings.ts b/src/panels/config/backup/ha-config-backup-settings.ts index 08a03ad889..ad894e6414 100644 --- a/src/panels/config/backup/ha-config-backup-settings.ts +++ b/src/panels/config/backup/ha-config-backup-settings.ts @@ -140,10 +140,10 @@ class HaConfigBackupSettings extends LitElement {
Encryption key

- All your backups are encrypted to keep your data private and - secure. You need this key to restore a backup. It's important - that you don't lose this key, as no one else can restore your - data. + Keep this encryption key in a safe place, as you will need it to + access your backup, allowing it to be restored. Either record + the characters below or download them as an emergency kit file. + Encryption keeps your backups private and secure.

Date: Mon, 23 Dec 2024 15:26:30 +0100 Subject: [PATCH 09/10] Bumped version to 20241223.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a8fa10b8c7..a8d343ca8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20241223.0" +version = "20241223.1" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md" From 331385794c422a9a5f4fbf5505e0fbc90bf27675 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Mon, 23 Dec 2024 15:30:17 +0100 Subject: [PATCH 10/10] View background settings: Change radio buttons to dropdowns (#23403) --- .../lovelace/editor/view-editor/hui-view-background-editor.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panels/lovelace/editor/view-editor/hui-view-background-editor.ts b/src/panels/lovelace/editor/view-editor/hui-view-background-editor.ts index 794e78e5a5..58481f5164 100644 --- a/src/panels/lovelace/editor/view-editor/hui-view-background-editor.ts +++ b/src/panels/lovelace/editor/view-editor/hui-view-background-editor.ts @@ -59,6 +59,7 @@ export class HuiViewBackgroundEditor extends LitElement { translation_key: "ui.panel.lovelace.editor.edit_view.background.size", options: ["auto", "cover", "contain"], + mode: "dropdown", }, }, }, @@ -79,6 +80,7 @@ export class HuiViewBackgroundEditor extends LitElement { "bottom center", "bottom right", ], + mode: "dropdown", }, }, }, @@ -89,6 +91,7 @@ export class HuiViewBackgroundEditor extends LitElement { translation_key: "ui.panel.lovelace.editor.edit_view.background.repeat", options: ["repeat", "no-repeat"], + mode: "dropdown", }, }, },