mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
20250109.2 (#23859)
This commit is contained in:
commit
fd1f966216
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "home-assistant-frontend"
|
||||
version = "20250109.1"
|
||||
version = "20250109.2"
|
||||
license = {text = "Apache-2.0"}
|
||||
description = "The Home Assistant frontend"
|
||||
readme = "README.md"
|
||||
|
@ -178,7 +178,7 @@ class HaEntityStatePicker extends LitElement {
|
||||
no-style
|
||||
@item-moved=${this._moveItem}
|
||||
.disabled=${this.disabled}
|
||||
filter="button.trailing.action"
|
||||
handle-selector="button.primary.action"
|
||||
>
|
||||
<ha-chip-set>
|
||||
${repeat(
|
||||
@ -195,12 +195,7 @@ class HaEntityStatePicker extends LitElement {
|
||||
.label=${label}
|
||||
selected
|
||||
>
|
||||
<ha-svg-icon
|
||||
slot="icon"
|
||||
.path=${mdiDrag}
|
||||
data-handle
|
||||
></ha-svg-icon>
|
||||
|
||||
<ha-svg-icon slot="icon" .path=${mdiDrag}></ha-svg-icon>
|
||||
${label}
|
||||
</ha-input-chip>
|
||||
`;
|
||||
|
@ -156,6 +156,7 @@ export class HaSelectSelector extends LitElement {
|
||||
no-style
|
||||
.disabled=${!this.selector.select.reorder}
|
||||
@item-moved=${this._itemMoved}
|
||||
handle-selector="button.primary.action"
|
||||
>
|
||||
<ha-chip-set>
|
||||
${repeat(
|
||||
@ -177,7 +178,6 @@ export class HaSelectSelector extends LitElement {
|
||||
<ha-svg-icon
|
||||
slot="icon"
|
||||
.path=${mdiDrag}
|
||||
data-handle
|
||||
></ha-svg-icon>
|
||||
`
|
||||
: nothing}
|
||||
|
@ -4,6 +4,7 @@ import {
|
||||
mdiFolder,
|
||||
mdiPlayBoxMultiple,
|
||||
mdiPuzzle,
|
||||
mdiShieldCheck,
|
||||
} from "@mdi/js";
|
||||
import type { CSSResultGroup, PropertyValues } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
@ -36,6 +37,7 @@ const ITEM_ICONS = {
|
||||
database: mdiChartBox,
|
||||
media: mdiPlayBoxMultiple,
|
||||
share: mdiFolder,
|
||||
ssl: mdiShieldCheck,
|
||||
};
|
||||
|
||||
type SelectedItems = {
|
||||
@ -104,6 +106,8 @@ export class HaBackupDataPicker extends LitElement {
|
||||
return this.hass.localize(
|
||||
"ui.panel.config.backup.data_picker.share_folder"
|
||||
);
|
||||
case "ssl":
|
||||
return this.hass.localize("ui.panel.config.backup.data_picker.ssl");
|
||||
case "addons/local":
|
||||
return this.hass.localize(
|
||||
"ui.panel.config.backup.data_picker.local_addons"
|
||||
@ -167,15 +171,14 @@ export class HaBackupDataPicker extends LitElement {
|
||||
})
|
||||
);
|
||||
|
||||
private _itemChanged(ev: Event) {
|
||||
private _homeassistantChanged(ev: Event) {
|
||||
const itemValues = this._parseValue(this.value);
|
||||
|
||||
const checkbox = ev.currentTarget as HaCheckbox;
|
||||
const section = (checkbox as any).section;
|
||||
if (checkbox.checked) {
|
||||
itemValues[section].push(checkbox.id);
|
||||
itemValues.homeassistant.push(checkbox.id);
|
||||
} else {
|
||||
itemValues[section] = itemValues[section].filter(
|
||||
itemValues.homeassistant = itemValues.homeassistant.filter(
|
||||
(id) => id !== checkbox.id
|
||||
);
|
||||
}
|
||||
@ -262,8 +265,7 @@ export class HaBackupDataPicker extends LitElement {
|
||||
.checked=${selectedItems.homeassistant.includes(
|
||||
item.id
|
||||
)}
|
||||
.section=${"homeassistant"}
|
||||
@change=${this._itemChanged}
|
||||
@change=${this._homeassistantChanged}
|
||||
></ha-checkbox>
|
||||
</ha-formfield>
|
||||
`
|
||||
@ -279,7 +281,7 @@ export class HaBackupDataPicker extends LitElement {
|
||||
<ha-backup-formfield-label
|
||||
slot="label"
|
||||
.label=${this.hass.localize(
|
||||
"ui.panel.config.backup.data_picker.local_addons"
|
||||
"ui.panel.config.backup.data_picker.addons"
|
||||
)}
|
||||
.iconPath=${mdiPuzzle}
|
||||
>
|
||||
|
@ -2401,7 +2401,8 @@
|
||||
"media": "Media",
|
||||
"share_folder": "Share folder",
|
||||
"local_addons": "Local add-ons folder",
|
||||
"addons": "Add-ons"
|
||||
"addons": "Add-ons",
|
||||
"ssl": "SSL certificates"
|
||||
},
|
||||
"schedule": {
|
||||
"use_automatic_backups": "Use automatic backups",
|
||||
|
Loading…
x
Reference in New Issue
Block a user