Merge pull request #9320 from home-assistant/dev

This commit is contained in:
Paulus Schoutsen 2021-05-31 15:55:09 -07:00 committed by GitHub
commit 7560f98d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 236 additions and 117 deletions

View File

@ -28,10 +28,13 @@ const createConfigEntry = (
title, title,
source: "zeroconf", source: "zeroconf",
state: "loaded", state: "loaded",
connection_class: "local_push",
supports_options: false, supports_options: false,
supports_unload: true, supports_unload: true,
disabled_by: null, disabled_by: null,
system_options: {
disable_new_entities: false,
disable_polling: false,
},
reason: null, reason: null,
...override, ...override,
}); });
@ -64,6 +67,12 @@ const configPanelEntry = createConfigEntry("Config Panel", {
const optionsFlowEntry = createConfigEntry("Options Flow", { const optionsFlowEntry = createConfigEntry("Options Flow", {
supports_options: true, supports_options: true,
}); });
const disabledPollingEntry = createConfigEntry("Disabled Polling", {
system_options: {
disable_new_entities: false,
disable_polling: true,
},
});
const setupErrorEntry = createConfigEntry("Setup Error", { const setupErrorEntry = createConfigEntry("Setup Error", {
state: "setup_error", state: "setup_error",
}); });
@ -136,6 +145,7 @@ const configEntries: Array<{
{ items: [loadedEntry] }, { items: [loadedEntry] },
{ items: [configPanelEntry] }, { items: [configPanelEntry] },
{ items: [optionsFlowEntry] }, { items: [optionsFlowEntry] },
{ items: [disabledPollingEntry] },
{ items: [nameAsDomainEntry] }, { items: [nameAsDomainEntry] },
{ items: [longNameEntry] }, { items: [longNameEntry] },
{ items: [longNonBreakingNameEntry] }, { items: [longNonBreakingNameEntry] },

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name="home-assistant-frontend", name="home-assistant-frontend",
version="20210531.0", version="20210531.1",
description="The Home Assistant frontend", description="The Home Assistant frontend",
url="https://github.com/home-assistant/home-assistant-polymer", url="https://github.com/home-assistant/home-assistant-polymer",
author="The Home Assistant Authors", author="The Home Assistant Authors",

View File

@ -1,5 +1,12 @@
import "@polymer/paper-tooltip/paper-tooltip"; import "@polymer/paper-tooltip/paper-tooltip";
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import {
css,
CSSResultGroup,
html,
nothing,
LitElement,
TemplateResult,
} from "lit";
import { customElement, state, property } from "lit/decorators"; import { customElement, state, property } from "lit/decorators";
import { import {
Adapter, Adapter,
@ -17,18 +24,19 @@ import "./ha-icon";
const format_addresses = ( const format_addresses = (
addresses: IPv6ConfiguredAddress[] | IPv4ConfiguredAddress[] addresses: IPv6ConfiguredAddress[] | IPv4ConfiguredAddress[]
): TemplateResult[] => ): TemplateResult =>
addresses.map( html`${addresses.map((address, i) => [
(address) => html`<span>${address.address}/${address.network_prefix}</span>` html`<span>${address.address}/${address.network_prefix}</span>`,
); i < addresses.length - 1 ? ", " : nothing,
])}`;
const format_auto_detected_interfaces = ( const format_auto_detected_interfaces = (
adapters: Adapter[] adapters: Adapter[]
): Array<TemplateResult | string> => ): Array<TemplateResult | string> =>
adapters.map((adapter) => adapters.map((adapter) =>
adapter.auto adapter.auto
? html`${adapter.name} (${format_addresses(adapter.ipv4)} ? html`${adapter.name}
${format_addresses(adapter.ipv6)} )` (${format_addresses([...adapter.ipv4, ...adapter.ipv6])})`
: "" : ""
); );
@ -88,8 +96,7 @@ export class HaNetwork extends LitElement {
: ""} : ""}
</span> </span>
<span slot="description"> <span slot="description">
${format_addresses(adapter.ipv4)} ${format_addresses([...adapter.ipv4, ...adapter.ipv6])}
${format_addresses(adapter.ipv6)}
</span> </span>
</ha-settings-row>` </ha-settings-row>`
) )

View File

@ -12,9 +12,9 @@ export interface ConfigEntry {
| "setup_retry" | "setup_retry"
| "not_loaded" | "not_loaded"
| "failed_unload"; | "failed_unload";
connection_class: string;
supports_options: boolean; supports_options: boolean;
supports_unload: boolean; supports_unload: boolean;
system_options: ConfigEntrySystemOptions;
disabled_by: "user" | null; disabled_by: "user" | null;
reason: string | null; reason: string | null;
} }
@ -25,6 +25,7 @@ export interface ConfigEntryMutableParams {
export interface ConfigEntrySystemOptions { export interface ConfigEntrySystemOptions {
disable_new_entities: boolean; disable_new_entities: boolean;
disable_polling: boolean;
} }
export const getConfigEntries = (hass: HomeAssistant) => export const getConfigEntries = (hass: HomeAssistant) =>
@ -72,21 +73,15 @@ export const enableConfigEntry = (hass: HomeAssistant, configEntryId: string) =>
disabled_by: null, disabled_by: null,
}); });
export const getConfigEntrySystemOptions = (
hass: HomeAssistant,
configEntryId: string
) =>
hass.callWS<ConfigEntrySystemOptions>({
type: "config_entries/system_options/list",
entry_id: configEntryId,
});
export const updateConfigEntrySystemOptions = ( export const updateConfigEntrySystemOptions = (
hass: HomeAssistant, hass: HomeAssistant,
configEntryId: string, configEntryId: string,
params: Partial<ConfigEntrySystemOptions> params: Partial<ConfigEntrySystemOptions>
) => ) =>
hass.callWS({ hass.callWS<{
require_restart: boolean;
system_options: ConfigEntrySystemOptions;
}>({
type: "config_entries/system_options/update", type: "config_entries/system_options/update",
entry_id: configEntryId, entry_id: configEntryId,
...params, ...params,

View File

@ -3,17 +3,14 @@ import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators"; import { customElement, property, state } from "lit/decorators";
import { fireEvent } from "../../common/dom/fire_event"; import { fireEvent } from "../../common/dom/fire_event";
import { computeRTLDirection } from "../../common/util/compute_rtl"; import { computeRTLDirection } from "../../common/util/compute_rtl";
import "../../components/ha-circular-progress";
import "../../components/ha-dialog"; import "../../components/ha-dialog";
import "../../components/ha-formfield"; import "../../components/ha-formfield";
import "../../components/ha-switch"; import "../../components/ha-switch";
import type { HaSwitch } from "../../components/ha-switch"; import type { HaSwitch } from "../../components/ha-switch";
import { import { updateConfigEntrySystemOptions } from "../../data/config_entries";
getConfigEntrySystemOptions,
updateConfigEntrySystemOptions,
} from "../../data/config_entries";
import { haStyleDialog } from "../../resources/styles"; import { haStyleDialog } from "../../resources/styles";
import type { HomeAssistant } from "../../types"; import type { HomeAssistant } from "../../types";
import { showAlertDialog } from "../generic/show-dialog-box";
import { ConfigEntrySystemOptionsDialogParams } from "./show-dialog-config-entry-system-options"; import { ConfigEntrySystemOptionsDialogParams } from "./show-dialog-config-entry-system-options";
@customElement("dialog-config-entry-system-options") @customElement("dialog-config-entry-system-options")
@ -22,12 +19,12 @@ class DialogConfigEntrySystemOptions extends LitElement {
@state() private _disableNewEntities!: boolean; @state() private _disableNewEntities!: boolean;
@state() private _disablePolling!: boolean;
@state() private _error?: string; @state() private _error?: string;
@state() private _params?: ConfigEntrySystemOptionsDialogParams; @state() private _params?: ConfigEntrySystemOptionsDialogParams;
@state() private _loading = false;
@state() private _submitting = false; @state() private _submitting = false;
public async showDialog( public async showDialog(
@ -35,13 +32,8 @@ class DialogConfigEntrySystemOptions extends LitElement {
): Promise<void> { ): Promise<void> {
this._params = params; this._params = params;
this._error = undefined; this._error = undefined;
this._loading = true; this._disableNewEntities = params.entry.system_options.disable_new_entities;
const systemOptions = await getConfigEntrySystemOptions( this._disablePolling = params.entry.system_options.disable_polling;
this.hass,
params.entry.entry_id
);
this._loading = false;
this._disableNewEntities = systemOptions.disable_new_entities;
} }
public closeDialog(): void { public closeDialog(): void {
@ -66,45 +58,57 @@ class DialogConfigEntrySystemOptions extends LitElement {
this._params.entry.domain this._params.entry.domain
)} )}
> >
<div> ${this._error ? html` <div class="error">${this._error}</div> ` : ""}
${this._loading <ha-formfield
? html` .label=${html`<p>
<div class="init-spinner"> ${this.hass.localize(
<ha-circular-progress active></ha-circular-progress> "ui.dialogs.config_entry_system_options.enable_new_entities_label"
</div> )}
` </p>
: html` <p class="secondary">
${this._error ${this.hass.localize(
? html` <div class="error">${this._error}</div> ` "ui.dialogs.config_entry_system_options.enable_new_entities_description",
: ""} "integration",
<div class="form"> this.hass.localize(
<ha-formfield `component.${this._params.entry.domain}.title`
.label=${html`<p> ) || this._params.entry.domain
${this.hass.localize( )}
"ui.dialogs.config_entry_system_options.enable_new_entities_label" </p>`}
)} .dir=${computeRTLDirection(this.hass)}
</p> >
<p class="secondary"> <ha-switch
${this.hass.localize( .checked=${!this._disableNewEntities}
"ui.dialogs.config_entry_system_options.enable_new_entities_description", @change=${this._disableNewEntitiesChanged}
"integration", .disabled=${this._submitting}
this.hass.localize( ></ha-switch>
`component.${this._params.entry.domain}.title` </ha-formfield>
) || this._params.entry.domain ${this._allowUpdatePolling()
)} ? html`
</p>`} <ha-formfield
.dir=${computeRTLDirection(this.hass)} .label=${html`<p>
> ${this.hass.localize(
<ha-switch "ui.dialogs.config_entry_system_options.enable_polling_label"
.checked=${!this._disableNewEntities} )}
@change=${this._disableNewEntitiesChanged} </p>
.disabled=${this._submitting} <p class="secondary">
> ${this.hass.localize(
</ha-switch> "ui.dialogs.config_entry_system_options.enable_polling_description",
</ha-formfield> "integration",
</div> this.hass.localize(
`} `component.${this._params.entry.domain}.title`
</div> ) || this._params.entry.domain
)}
</p>`}
.dir=${computeRTLDirection(this.hass)}
>
<ha-switch
.checked=${!this._disablePolling}
@change=${this._disablePollingChanged}
.disabled=${this._submitting}
></ha-switch>
</ha-formfield>
`
: ""}
<mwc-button <mwc-button
slot="secondaryAction" slot="secondaryAction"
@click=${this.closeDialog} @click=${this.closeDialog}
@ -115,7 +119,7 @@ class DialogConfigEntrySystemOptions extends LitElement {
<mwc-button <mwc-button
slot="primaryAction" slot="primaryAction"
@click="${this._updateEntry}" @click="${this._updateEntry}"
.disabled=${this._submitting || this._loading} .disabled=${this._submitting}
> >
${this.hass.localize("ui.dialogs.config_entry_system_options.update")} ${this.hass.localize("ui.dialogs.config_entry_system_options.update")}
</mwc-button> </mwc-button>
@ -123,21 +127,53 @@ class DialogConfigEntrySystemOptions extends LitElement {
`; `;
} }
private _allowUpdatePolling() {
return (
this._params!.manifest &&
(this._params!.manifest.iot_class === "local_polling" ||
this._params!.manifest.iot_class === "cloud_polling")
);
}
private _disableNewEntitiesChanged(ev: Event): void { private _disableNewEntitiesChanged(ev: Event): void {
this._error = undefined; this._error = undefined;
this._disableNewEntities = !(ev.target as HaSwitch).checked; this._disableNewEntities = !(ev.target as HaSwitch).checked;
} }
private _disablePollingChanged(ev: Event): void {
this._error = undefined;
this._disablePolling = !(ev.target as HaSwitch).checked;
}
private async _updateEntry(): Promise<void> { private async _updateEntry(): Promise<void> {
this._submitting = true; this._submitting = true;
const data: Parameters<typeof updateConfigEntrySystemOptions>[2] = {
disable_new_entities: this._disableNewEntities,
};
if (this._allowUpdatePolling()) {
data.disable_polling = this._disablePolling;
}
try { try {
await updateConfigEntrySystemOptions( const result = await updateConfigEntrySystemOptions(
this.hass, this.hass,
this._params!.entry.entry_id, this._params!.entry.entry_id,
{ data
disable_new_entities: this._disableNewEntities,
}
); );
if (result.require_restart) {
await showAlertDialog(this, {
text: this.hass.localize(
"ui.dialogs.config_entry_system_options.restart_home_assistant"
),
});
}
const curEntry = this._params!.entry;
this._params!.entryUpdated({
...curEntry,
system_options: {
...curEntry.system_options,
...data,
},
});
this._params = undefined; this._params = undefined;
} catch (err) { } catch (err) {
this._error = err.message || "Unknown error"; this._error = err.message || "Unknown error";
@ -150,20 +186,6 @@ class DialogConfigEntrySystemOptions extends LitElement {
return [ return [
haStyleDialog, haStyleDialog,
css` css`
.init-spinner {
padding: 50px 100px;
text-align: center;
}
.form {
padding-top: 6px;
padding-bottom: 24px;
color: var(--primary-text-color);
}
.secondary {
color: var(--secondary-text-color);
}
.error { .error {
color: var(--error-color); color: var(--error-color);
} }

View File

@ -1,12 +1,11 @@
import { fireEvent } from "../../common/dom/fire_event"; import { fireEvent } from "../../common/dom/fire_event";
import { ConfigEntry } from "../../data/config_entries"; import { ConfigEntry } from "../../data/config_entries";
import { IntegrationManifest } from "../../data/integration";
export interface ConfigEntrySystemOptionsDialogParams { export interface ConfigEntrySystemOptionsDialogParams {
entry: ConfigEntry; entry: ConfigEntry;
// updateEntry: ( manifest?: IntegrationManifest;
// updates: Partial<EntityRegistryEntryUpdateParams> entryUpdated(entry: ConfigEntry): void;
// ) => Promise<unknown>;
// removeEntry: () => Promise<boolean>;
} }
export const loadConfigEntrySystemOptionsDialog = () => export const loadConfigEntrySystemOptionsDialog = () =>

View File

@ -50,6 +50,9 @@ class HaStoreAuth extends LitElement {
bottom: 16px; bottom: 16px;
right: 16px; right: 16px;
transition: bottom 0.25s; transition: bottom 0.25s;
--ha-card-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
0px 6px 10px 0px rgba(0, 0, 0, 0.14),
0px 1px 18px 0px rgba(0, 0, 0, 0.12);
} }
.card-actions { .card-actions {

View File

@ -110,6 +110,7 @@ export class HaIntegrationCard extends LitElement {
: undefined} : undefined}
.localizedDomainName=${item ? item.localized_domain_name : undefined} .localizedDomainName=${item ? item.localized_domain_name : undefined}
.manifest=${this.manifest} .manifest=${this.manifest}
.configEntry=${item}
> >
${this.items.length > 1 ${this.items.length > 1
? html` ? html`
@ -466,6 +467,11 @@ export class HaIntegrationCard extends LitElement {
private _showSystemOptions(configEntry: ConfigEntry) { private _showSystemOptions(configEntry: ConfigEntry) {
showConfigEntrySystemOptionsDialog(this, { showConfigEntrySystemOptionsDialog(this, {
entry: configEntry, entry: configEntry,
manifest: this.manifest,
entryUpdated: (entry) =>
fireEvent(this, "entry-updated", {
entry,
}),
}); });
} }

View File

@ -1,8 +1,9 @@
import { mdiCloud, mdiPackageVariant } from "@mdi/js"; import { mdiCloud, mdiPackageVariant, mdiSyncOff } from "@mdi/js";
import "@polymer/paper-tooltip/paper-tooltip"; import "@polymer/paper-tooltip/paper-tooltip";
import { css, html, LitElement, TemplateResult } from "lit"; import { css, html, LitElement, TemplateResult } from "lit";
import { customElement, property } from "lit/decorators"; import { customElement, property } from "lit/decorators";
import "../../../components/ha-svg-icon"; import "../../../components/ha-svg-icon";
import { ConfigEntry } from "../../../data/config_entries";
import { domainToName, IntegrationManifest } from "../../../data/integration"; import { domainToName, IntegrationManifest } from "../../../data/integration";
import { HomeAssistant } from "../../../types"; import { HomeAssistant } from "../../../types";
import { brandsUrl } from "../../../util/brands-url"; import { brandsUrl } from "../../../util/brands-url";
@ -21,6 +22,8 @@ export class HaIntegrationHeader extends LitElement {
@property({ attribute: false }) public manifest?: IntegrationManifest; @property({ attribute: false }) public manifest?: IntegrationManifest;
@property({ attribute: false }) public configEntry?: ConfigEntry;
protected render(): TemplateResult { protected render(): TemplateResult {
let primary: string; let primary: string;
let secondary: string | undefined; let secondary: string | undefined;
@ -59,6 +62,15 @@ export class HaIntegrationHeader extends LitElement {
), ),
]); ]);
} }
if (this.configEntry?.system_options.disable_polling) {
icons.push([
mdiSyncOff,
this.hass.localize(
"ui.panel.config.integrations.config_entry.disabled_polling"
),
]);
}
} }
return html` return html`

View File

@ -33,7 +33,7 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
.then(() => { .then(() => {
const el = document.createElement("ha-store-auth-card"); const el = document.createElement("ha-store-auth-card");
this.provideHass(el); this.provideHass(el);
this.shadowRoot!.appendChild(el); document.body.appendChild(el);
}); });
} }
} }

View File

@ -759,7 +759,10 @@
"config_entry_system_options": { "config_entry_system_options": {
"title": "System Options for {integration}", "title": "System Options for {integration}",
"enable_new_entities_label": "Enable newly added entities.", "enable_new_entities_label": "Enable newly added entities.",
"enable_new_entities_description": "If disabled, newly discovered entities for {integration} will not be automatically added to Home Assistant.", "enable_new_entities_description": "If newly discovered devices for {integration} should be automatically added.",
"enable_polling_label": "Enable polling for updates.",
"enable_polling_description": "If Home Assistant should automatically poll {integration} entities for updates.",
"restart_home_assistant": "You need to restart Home Assistant for your changes to take effect.",
"update": "Update" "update": "Update"
}, },
"zha_reconfigure_device": { "zha_reconfigure_device": {
@ -2182,6 +2185,7 @@
}, },
"provided_by_custom_integration": "Provided by a custom integration", "provided_by_custom_integration": "Provided by a custom integration",
"depends_on_cloud": "Depends on the cloud", "depends_on_cloud": "Depends on the cloud",
"disabled_polling": "Automatic polling for updated data disabled",
"state": { "state": {
"loaded": "Loaded", "loaded": "Loaded",
"setup_error": "Failed to set up", "setup_error": "Failed to set up",

View File

@ -39,13 +39,12 @@ export const registerServiceWorker = async (
} }
// Notify users a new frontend is available. // Notify users a new frontend is available.
// When
showToast(rootEl, { showToast(rootEl, {
message: "A new version of the frontend is available.", message: "A new version of the frontend is available.",
action: { action: {
// We tell the service worker to call skipWaiting, which activates // We tell the service worker to call skipWaiting, which activates
// the new service worker. Above we listen for `controllerchange` // the new service worker. Above we listen for `controllerchange`
// so we reload the page once a new servic worker activates. // so we reload the page once a new service worker activates.
action: () => installingWorker.postMessage({ type: "skipWaiting" }), action: () => installingWorker.postMessage({ type: "skipWaiting" }),
text: "reload", text: "reload",
}, },

View File

@ -385,8 +385,13 @@
"create_blocked_not_running": "Vytvoření zálohy není momentálně možné, protože systém je ve \"{state}\".", "create_blocked_not_running": "Vytvoření zálohy není momentálně možné, protože systém je ve \"{state}\".",
"create_snapshot": "Vytvořit zálohu", "create_snapshot": "Vytvořit zálohu",
"created": "Vytvořeno", "created": "Vytvořeno",
"delete_selected": "Smazat vybrané zálohy",
"delete_snapshot_confirm": "smazat",
"delete_snapshot_text": "Chcete smazat {number} {number, plural,\n one {zálohu}\n few {zálohy}\n other {záloh}\n}?",
"delete_snapshot_title": "Smazat zálohu",
"description": "Zálohy umožňují snadno zálohovat a obnovovat všechna data vaší instance Home Assistant.", "description": "Zálohy umožňují snadno zálohovat a obnovovat všechna data vaší instance Home Assistant.",
"enter_password": "Prosím zadejte heslo.", "enter_password": "Prosím zadejte heslo.",
"failed_to_delete": "Smazání se nezdařilo",
"folder": { "folder": {
"addons/local": "Místní doplňky", "addons/local": "Místní doplňky",
"homeassistant": "Nastavení Home Asistent", "homeassistant": "Nastavení Home Asistent",
@ -404,6 +409,7 @@
"password_protection": "Ochrana heslem", "password_protection": "Ochrana heslem",
"security": "Zabezpečení", "security": "Zabezpečení",
"select_type": "Vyberte, co chcete obnovit", "select_type": "Vyberte, co chcete obnovit",
"selected": "{number} vybraných",
"type": "Typ zálohy", "type": "Typ zálohy",
"upload_snapshot": "Nahrát zálohu" "upload_snapshot": "Nahrát zálohu"
}, },

View File

@ -385,8 +385,13 @@
"create_blocked_not_running": "Det er ikke muligt at oprette et snapshot lige nu, fordi systemet er i tilstanden {state}.", "create_blocked_not_running": "Det er ikke muligt at oprette et snapshot lige nu, fordi systemet er i tilstanden {state}.",
"create_snapshot": "Opret snapshot", "create_snapshot": "Opret snapshot",
"created": "Oprettet", "created": "Oprettet",
"delete_selected": "Slet valgte snapshots",
"delete_snapshot_confirm": "Slet",
"delete_snapshot_text": "Vil du slette {number} \n{number, plural,\n one {snapshot}\n other {snapshots}\n}?",
"delete_snapshot_title": "Slet snapshot",
"description": "Snapshots giver dig mulighed for nemt at sikkerhedskopiere og gendanne alle data fra dit instans af Home Assistant.", "description": "Snapshots giver dig mulighed for nemt at sikkerhedskopiere og gendanne alle data fra dit instans af Home Assistant.",
"enter_password": "Venligst indtast et kodeord.", "enter_password": "Venligst indtast et kodeord.",
"failed_to_delete": "Kunne ikke slette",
"folder": { "folder": {
"addons/local": "Lokale tilføjelsesprogrammer", "addons/local": "Lokale tilføjelsesprogrammer",
"homeassistant": "Home Assistant konfiguration", "homeassistant": "Home Assistant konfiguration",
@ -403,6 +408,8 @@
"password_protected": "beskyttet med kodeord", "password_protected": "beskyttet med kodeord",
"password_protection": "Kodeordsbeskyttelse", "password_protection": "Kodeordsbeskyttelse",
"security": "Sikkerhed", "security": "Sikkerhed",
"select_type": "Vælg, hvad der skal gendannes",
"selected": "{number} valgt",
"type": "Type", "type": "Type",
"upload_snapshot": "Upload snapshot" "upload_snapshot": "Upload snapshot"
}, },
@ -720,6 +727,9 @@
"no_match": "Ingen matchende områder fundet", "no_match": "Ingen matchende områder fundet",
"show_areas": "Vis områder" "show_areas": "Vis områder"
}, },
"attributes": {
"expansion_header": "Attributter"
},
"blueprint-picker": { "blueprint-picker": {
"add_user": "Tilføj bruger", "add_user": "Tilføj bruger",
"remove_user": "Fjern bruger", "remove_user": "Fjern bruger",
@ -1719,6 +1729,7 @@
"title": "Alexa" "title": "Alexa"
}, },
"connected": "Forbundet", "connected": "Forbundet",
"connecting": "Forbinder...",
"connection_status": "Cloud-forbindelsesstatus", "connection_status": "Cloud-forbindelsesstatus",
"fetching_subscription": "Henter abonnement...", "fetching_subscription": "Henter abonnement...",
"google": { "google": {
@ -2588,6 +2599,8 @@
"add_scene": "Tilføj scene", "add_scene": "Tilføj scene",
"delete_confirm": "Er du sikker på, at du vil slette denne scene?", "delete_confirm": "Er du sikker på, at du vil slette denne scene?",
"delete_scene": "Slet scene", "delete_scene": "Slet scene",
"duplicate": "Kopier",
"duplicate_scene": "Kopier scene",
"edit_scene": "Rediger scene", "edit_scene": "Rediger scene",
"header": "Sceneredigering", "header": "Sceneredigering",
"headers": { "headers": {
@ -2916,6 +2929,8 @@
"follow_device_instructions": "Følg instruktionerne, der fulgte med din enhed for at starte parring af enheden.", "follow_device_instructions": "Følg instruktionerne, der fulgte med din enhed for at starte parring af enheden.",
"inclusion_failed": "Noden kunne ikke tilføjes. Se i logfilerne for at få flere oplysninger.", "inclusion_failed": "Noden kunne ikke tilføjes. Se i logfilerne for at få flere oplysninger.",
"inclusion_finished": "Noden er blevet tilføjet. Det kan tage et par minutter før alle enheder dukker op, mens konfiguration af noden fuldføres.", "inclusion_finished": "Noden er blevet tilføjet. Det kan tage et par minutter før alle enheder dukker op, mens konfiguration af noden fuldføres.",
"interview_failed": "Forespørgsel af enheden er mislykkedes. Der kan være yderligere oplysninger i logfilerne.",
"interview_started": "Enheden forespørges. Dette kan tage noget tid.",
"introduction": "Denne guide hjælper dig med at føje en node til dit Z-Wave-netværk.", "introduction": "Denne guide hjælper dig med at føje en node til dit Z-Wave-netværk.",
"secure_inclusion_warning": "Sikre enheder kræver ekstra båndbredde. For mange sikre enheder kan gøre dit Z-Wave-netværk langsomt. Det anbefaler kun at bruge sikker inklusion til de enheder, hvor det er nødvendigt. For eksempel til låse eller garageportåbnere.", "secure_inclusion_warning": "Sikre enheder kræver ekstra båndbredde. For mange sikre enheder kan gøre dit Z-Wave-netværk langsomt. Det anbefaler kun at bruge sikker inklusion til de enheder, hvor det er nødvendigt. For eksempel til låse eller garageportåbnere.",
"start_inclusion": "Start inklusionstilstand", "start_inclusion": "Start inklusionstilstand",
@ -2955,6 +2970,7 @@
}, },
"logs": { "logs": {
"log_level": "Log niveau", "log_level": "Log niveau",
"log_level_changed": "Logniveauet er ændret til: {level}",
"subscribed_to_logs": "Abboner på Z-Wave JS Log beskeder", "subscribed_to_logs": "Abboner på Z-Wave JS Log beskeder",
"title": "Z-Wave JS-logfiler" "title": "Z-Wave JS-logfiler"
}, },
@ -4004,6 +4020,17 @@
"primary_color": "Primær farve", "primary_color": "Primær farve",
"reset": "Nulstil" "reset": "Nulstil"
}, },
"time_format": {
"description": "Vælg, hvordan klokkeslæt skal formateres.",
"dropdown_label": "Tidsformat",
"formats": {
"12": "12 timer (AM / PM)",
"24": "24 timer",
"language": "Automatisk (brug sprogindstilling)",
"system": "Brug systemets landestandard"
},
"header": "Tidsformat"
},
"vibrate": { "vibrate": {
"description": "Aktivér eller deaktiver vibrationer på denne enhed, når du styrer enheder.", "description": "Aktivér eller deaktiver vibrationer på denne enhed, når du styrer enheder.",
"header": "Vibrer" "header": "Vibrer"

View File

@ -929,8 +929,11 @@
}, },
"dialogs": { "dialogs": {
"config_entry_system_options": { "config_entry_system_options": {
"enable_new_entities_description": "If disabled, newly discovered entities for {integration} will not be automatically added to Home Assistant.", "enable_new_entities_description": "If newly discovered devices for {integration} should be automatically added.",
"enable_new_entities_label": "Enable newly added entities.", "enable_new_entities_label": "Enable newly added entities.",
"enable_polling_description": "If Home Assistant should automatically poll {integration} entities for updates.",
"enable_polling_label": "Enable polling for updates.",
"restart_home_assistant": "You need to restart Home Assistant for your changes to take effect.",
"title": "System Options for {integration}", "title": "System Options for {integration}",
"update": "Update" "update": "Update"
}, },
@ -2217,6 +2220,7 @@
}, },
"disabled_cause": "Disabled by {cause}" "disabled_cause": "Disabled by {cause}"
}, },
"disabled_polling": "Automatic polling for updated data disabled",
"documentation": "Documentation", "documentation": "Documentation",
"enable_restart_confirm": "Restart Home Assistant to finish enabling this integration", "enable_restart_confirm": "Restart Home Assistant to finish enabling this integration",
"entities": "{count} {count, plural,\n one {entity}\n other {entities}\n}", "entities": "{count} {count, plural,\n one {entity}\n other {entities}\n}",

View File

@ -385,8 +385,13 @@
"create_blocked_not_running": "시스템이 {state} 상태이기 때문에 지금은 스냅숏을 생성할 수 없습니다.", "create_blocked_not_running": "시스템이 {state} 상태이기 때문에 지금은 스냅숏을 생성할 수 없습니다.",
"create_snapshot": "스냅숏 생성하기", "create_snapshot": "스냅숏 생성하기",
"created": "생성됨", "created": "생성됨",
"delete_selected": "선택한 스냅샷 삭제",
"delete_snapshot_confirm": "삭제",
"delete_snapshot_text": "{number} {number, plural,\n one{개의 스냅샷}\n other{개의 스냅샷}\n}를 삭제하시겠습니까?",
"delete_snapshot_title": "스냅샷 삭제",
"description": "스냅숏을 사용하면 Home Assistant 인스턴스의 모든 데이터를 쉽게 백업하고 복원할 수 있습니다.", "description": "스냅숏을 사용하면 Home Assistant 인스턴스의 모든 데이터를 쉽게 백업하고 복원할 수 있습니다.",
"enter_password": "비밀번호를 입력해주세요.", "enter_password": "비밀번호를 입력해주세요.",
"failed_to_delete": "삭제하지 못했습니다.",
"folder": { "folder": {
"addons/local": "로컬 애드온", "addons/local": "로컬 애드온",
"homeassistant": "Home Assistant 구성 내용", "homeassistant": "Home Assistant 구성 내용",
@ -404,6 +409,7 @@
"password_protection": "비밀번호 보호", "password_protection": "비밀번호 보호",
"security": "보안", "security": "보안",
"select_type": "복원 할 항목 선택", "select_type": "복원 할 항목 선택",
"selected": "{number}개 선택됨",
"type": "유형", "type": "유형",
"upload_snapshot": "스냅숏 올리기" "upload_snapshot": "스냅숏 올리기"
}, },

View File

@ -385,8 +385,13 @@
"create_blocked_not_running": "Å lage en sikkerhetskopi er ikke mulig akkurat nå fordi systemet er i {state} status", "create_blocked_not_running": "Å lage en sikkerhetskopi er ikke mulig akkurat nå fordi systemet er i {state} status",
"create_snapshot": "Opprett sikkerhetskopi", "create_snapshot": "Opprett sikkerhetskopi",
"created": "Opprettet", "created": "Opprettet",
"delete_selected": "Slett valgte sikkerhetskopier",
"delete_snapshot_confirm": "slett",
"delete_snapshot_text": "Vl du slette {number} {number, plural,\n one {sikkerhetskopi}\n other {sikkerhetskopier}\n}?",
"delete_snapshot_title": "Slett sikkerhetskopi",
"description": "Sikkerhetskopier lar deg enkelt sikkerhetskopiere og gjenopprette alle dataene fra din Home Assistant forekomst", "description": "Sikkerhetskopier lar deg enkelt sikkerhetskopiere og gjenopprette alle dataene fra din Home Assistant forekomst",
"enter_password": "Vennligst skriv inn et passord", "enter_password": "Vennligst skriv inn et passord",
"failed_to_delete": "Kunne ikke slette",
"folder": { "folder": {
"addons/local": "Lokale tillegg", "addons/local": "Lokale tillegg",
"homeassistant": "Home Assistant-konfigurasjon", "homeassistant": "Home Assistant-konfigurasjon",
@ -404,6 +409,7 @@
"password_protection": "Passordbeskyttelse", "password_protection": "Passordbeskyttelse",
"security": "Sikkerhet", "security": "Sikkerhet",
"select_type": "Velg hva du vil gjenopprette", "select_type": "Velg hva du vil gjenopprette",
"selected": "{number} valgt",
"type": "Type øyeblikksbilde", "type": "Type øyeblikksbilde",
"upload_snapshot": "Last opp sikkerhetskopi" "upload_snapshot": "Last opp sikkerhetskopi"
}, },

View File

@ -713,9 +713,20 @@
}, },
"zha_reconfigure_device": { "zha_reconfigure_device": {
"attribute": "Atributo", "attribute": "Atributo",
"battery_device_warning": "Você precisará despertar os dispositivos alimentados por bateria antes de iniciar o processo de reconfiguração. Consulte o manual do seu dispositivo para obter instruções sobre como despertar o dispositivo.",
"bind_header": "Vinculação", "bind_header": "Vinculação",
"button_hide": "Ocultar detalhes",
"button_show": "Mostrar detalhes",
"cluster_header": "Cluster",
"configuration_complete": "Reconfiguração do dispositivo concluída.",
"configuration_failed": "A reconfiguração do dispositivo falhou. Informações adicionais podem estar disponíveis nos logs.",
"configuring_alt": "Configurando",
"in_progress": "O dispositivo está sendo reconfigurado. Isto pode levar algum tempo.",
"introduction": "Reconfigure um dispositivo em sua rede Zigbee. Use este recurso se o seu dispositivo não estiver funcionando corretamente.",
"min_max_change": "min/máx/mudança", "min_max_change": "min/máx/mudança",
"reporting_header": "Relatório" "reporting_header": "Relatório",
"run_in_background": "Você pode fechar esta caixa de diálogo e a reconfiguração continuará em segundo plano.",
"start_reconfiguration": "Iniciar reconfiguração"
} }
}, },
"duration": { "duration": {
@ -770,6 +781,7 @@
"linked_entities_caption": "Entidades", "linked_entities_caption": "Entidades",
"name": "Nome", "name": "Nome",
"name_required": "Nome é obrigatório", "name_required": "Nome é obrigatório",
"no_linked_entities": "Não há entidades vinculadas a esta área.",
"unknown_error": "Erro desconhecido", "unknown_error": "Erro desconhecido",
"update": "Atualizar" "update": "Atualizar"
}, },
@ -2120,6 +2132,7 @@
"zwave_js": { "zwave_js": {
"logs": { "logs": {
"log_level": "Nível de Log", "log_level": "Nível de Log",
"log_level_changed": "Nível de Log mudou para: {level}",
"subscribed_to_logs": "Inscrito em mensagens de log JS do Z-Wave ...", "subscribed_to_logs": "Inscrito em mensagens de log JS do Z-Wave ...",
"title": "Logs Z-Wave JS" "title": "Logs Z-Wave JS"
}, },

View File

@ -219,7 +219,7 @@
}, },
"boot": { "boot": {
"description": "Запускать дополнение во время загрузки системы", "description": "Запускать дополнение во время загрузки системы",
"title": "Запускать при загрузке" "title": "Автозагрузка"
}, },
"ingress_panel": { "ingress_panel": {
"description": "Добавить это дополнение на боковую панель", "description": "Добавить это дополнение на боковую панель",

View File

@ -387,7 +387,7 @@
"created": "创建于", "created": "创建于",
"delete_selected": "删除选定的快照", "delete_selected": "删除选定的快照",
"delete_snapshot_confirm": "删除", "delete_snapshot_confirm": "删除",
"delete_snapshot_text": "是否要删除{number}个快照?", "delete_snapshot_text": "是否要删除{number} 个快照?",
"delete_snapshot_title": "删除快照", "delete_snapshot_title": "删除快照",
"description": "“快照”使您可以轻松地备份和还原 Home Assistant 实例的所有数据。", "description": "“快照”使您可以轻松地备份和还原 Home Assistant 实例的所有数据。",
"enter_password": "请输入密码。", "enter_password": "请输入密码。",
@ -408,8 +408,8 @@
"password_protected": "密码保护", "password_protected": "密码保护",
"password_protection": "密码保护", "password_protection": "密码保护",
"security": "安全性", "security": "安全性",
"select_type": "选择要还原的内容", "select_type": "选择要还原的内容",
"selected": "选择 {number} 项", "selected": "选择 {number} 项",
"type": "类型", "type": "类型",
"upload_snapshot": "上传快照" "upload_snapshot": "上传快照"
}, },
@ -580,8 +580,8 @@
}, },
"lock": { "lock": {
"code": "密码", "code": "密码",
"lock": "锁", "lock": "",
"unlock": "锁" "unlock": "锁"
}, },
"media_player": { "media_player": {
"browse_media": "浏览媒体", "browse_media": "浏览媒体",
@ -798,13 +798,13 @@
"was_closed": "已关闭", "was_closed": "已关闭",
"was_connected": "已连接", "was_connected": "已连接",
"was_disconnected": "已断开", "was_disconnected": "已断开",
"was_locked": "已锁", "was_locked": "已",
"was_low": "较低", "was_low": "较低",
"was_normal": "正常", "was_normal": "正常",
"was_opened": "已打开", "was_opened": "已打开",
"was_plugged_in": "已插入", "was_plugged_in": "已插入",
"was_safe": "[%key_id:6884522%]", "was_safe": "[%key_id:6884522%]",
"was_unlocked": "已打开", "was_unlocked": "已解锁",
"was_unplugged": "已拔出", "was_unplugged": "已拔出",
"was_unsafe": "[%key_id:6884523%]" "was_unsafe": "[%key_id:6884523%]"
}, },
@ -1129,7 +1129,7 @@
"command_line": "命令行实体", "command_line": "命令行实体",
"core": "位置和自定义", "core": "位置和自定义",
"filesize": "文件大小实体", "filesize": "文件大小实体",
"filter": "筛选实体", "filter": "Filter 实体",
"generic": "通用 IP 摄像机实体", "generic": "通用 IP 摄像机实体",
"generic_thermostat": "通用恒温器实体", "generic_thermostat": "通用恒温器实体",
"group": "分组、分组实体及其通知服务", "group": "分组、分组实体及其通知服务",
@ -1803,7 +1803,7 @@
} }
}, },
"alexa": { "alexa": {
"banner": "您在configuration.yaml中配置了实体过滤器因此无法用此UI修改被公开的实体名单。", "banner": "由于您在 configuration.yaml 中配置了实体过滤器,无法通过此 UI 修改要开放的实体。",
"dont_expose_entity": "使实体不可发现", "dont_expose_entity": "使实体不可发现",
"expose": "向Alexa发送你的位置", "expose": "向Alexa发送你的位置",
"expose_entity": "使实体可发现", "expose_entity": "使实体可发现",
@ -2672,7 +2672,7 @@
"command_line": "命令行实体", "command_line": "命令行实体",
"core": "位置和自定义", "core": "位置和自定义",
"filesize": "文件大小实体", "filesize": "文件大小实体",
"filter": "筛选实体", "filter": "Filter 实体",
"generic": "通用 IP 摄像机实体", "generic": "通用 IP 摄像机实体",
"generic_thermostat": "通用恒温器实体", "generic_thermostat": "通用恒温器实体",
"group": "分组、分组实体及其通知服务", "group": "分组、分组实体及其通知服务",
@ -2970,7 +2970,7 @@
}, },
"logs": { "logs": {
"log_level": "日志级别", "log_level": "日志级别",
"log_level_changed": "日志级别更改为 {level}", "log_level_changed": "日志级别更改为: {level}",
"subscribed_to_logs": "已订阅 Z-Wave JS 日志消息...", "subscribed_to_logs": "已订阅 Z-Wave JS 日志消息...",
"title": "Z-Wave JS 日志" "title": "Z-Wave JS 日志"
}, },