Skip to content

Commit

Permalink
20241223.1 (#23402)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Dec 23, 2024
2 parents a7cacbb + 3313857 commit e7d9032
Show file tree
Hide file tree
Showing 23 changed files with 206 additions and 217 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 0 additions & 8 deletions src/components/ha-outlined-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
`,
];
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/ha-outlined-text-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ha-sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
border-bottom: 1px solid var(--divider-color);
background-color: var(
--sidebar-menu-button-background-color,
var(--primary-background-color)
inherit
);
font-size: 20px;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/areas/dialog-area-registry-detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class DialogAreaDetail extends LitElement {
>
${entry
? this.hass.localize("ui.common.save")
: this.hass.localize("ui.common.add")}
: this.hass.localize("ui.common.create")}
</mwc-button>
</ha-dialog>
`;
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/areas/dialog-floor-registry-detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class DialogFloorDetail extends LitElement {
>
${entry
? this.hass.localize("ui.common.save")
: this.hass.localize("ui.common.add")}
: this.hass.localize("ui.common.create")}
</mwc-button>
</ha-dialog>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class HaBackupConfigAgents extends LitElement {

private _description(agentId: string) {
if (agentId === CLOUD_AGENT) {
return "It stores one backup. The oldest backups are deleted.";
return "Note: It stores only one backup, regardless of your settings.";
}
if (isNetworkMountAgent(agentId)) {
return "Network storage";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class HaBackupConfigData extends LitElement {
></ha-svg-icon>
<span slot="headline">Media</span>
<span slot="supporting-text">
For example, camera recordings.
This can include large filesize camera recordings.
</span>
<ha-switch
id="media"
Expand All @@ -209,7 +209,7 @@ class HaBackupConfigData extends LitElement {
<ha-svg-icon slot="start" .path=${mdiFolder}></ha-svg-icon>
<span slot="headline">Share folder</span>
<span slot="supporting-text">
Folder that is often used for advanced or older
Folder that is often used by add-ons for advanced or older
configurations.
</span>
<ha-switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class HaBackupSummaryCard extends LitElement {
row-gap: 8px;
align-items: center;
padding: 16px;
padding-bottom: 8px;
width: 100%;
box-sizing: border-box;
}
Expand Down Expand Up @@ -145,10 +146,6 @@ class HaBackupSummaryCard extends LitElement {
}
@media all and (max-width: 550px) {
.summary {
flex-wrap: wrap;
padding: 8px;
}
.action {
width: 100%;
display: flex;
Expand Down
84 changes: 0 additions & 84 deletions src/panels/config/backup/components/ha-backup-summary-status.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,13 @@ class HaBackupOverviewBackups extends LitElement {
display: flex;
justify-content: flex-end;
}
.card-header {
padding-bottom: 8px;
}
.card-content {
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
}
`,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,20 @@ class HaBackupOverviewBackups extends LitElement {
<div class="icon">
<ha-svg-icon .path=${mdiInformationOutline}></ha-svg-icon>
</div>
Set up automatic backups
Set up backups
</div>
<div class="card-content">
<p>
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.
</p>
</div>
<div class="card-actions">
<ha-button @click=${this._setup}>
Set up automatic backups
</ha-button>
<ha-button @click=${this._setup}>Set up backups</ha-button>
</div>
</ha-card>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import "../../../../../components/ha-md-list";
import "../../../../../components/ha-md-list-item";
import "../../../../../components/ha-svg-icon";
import type { BackupConfig } from "../../../../../data/backup";
import { BackupScheduleState, isLocalAgent } from "../../../../../data/backup";
import {
BackupScheduleState,
computeBackupAgentName,
isLocalAgent,
} from "../../../../../data/backup";
import { haStyle } from "../../../../../resources/styles";
import type { HomeAssistant } from "../../../../../types";

Expand Down Expand Up @@ -88,6 +92,14 @@ class HaBackupBackupsSummary extends LitElement {
);

if (offsiteLocations.length) {
if (offsiteLocations.length === 1) {
const name = computeBackupAgentName(
this.hass.localize,
offsiteLocations[0],
offsiteLocations
);
return `Upload to ${name}`;
}
return `Upload to ${offsiteLocations.length} off-site locations`;
}
if (hasLocal) {
Expand Down Expand Up @@ -184,9 +196,13 @@ class HaBackupBackupsSummary extends LitElement {
display: flex;
justify-content: flex-end;
}
.card-header {
padding-bottom: 8px;
}
.card-content {
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
}
`,
];
Expand Down
Loading

0 comments on commit e7d9032

Please sign in to comment.