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