diff --git a/src/panels/lovelace/cards/hui-logbook-card.ts b/src/panels/lovelace/cards/hui-logbook-card.ts index 13aaf9a2ab..98772b37f9 100644 --- a/src/panels/lovelace/cards/hui-logbook-card.ts +++ b/src/panels/lovelace/cards/hui-logbook-card.ts @@ -105,7 +105,9 @@ export class HuiLogbookCard extends LitElement implements LovelaceCard { return html` ${this.hass.localize( - "ui.components.logbook.component_not_loaded" + "ui.components.logbook.not_loaded", + "platform", + "logbook" )} `; diff --git a/src/panels/lovelace/editor/add-entities-to-view.ts b/src/panels/lovelace/editor/add-entities-to-view.ts index 42ad5ac06d..cd1aed9d8b 100644 --- a/src/panels/lovelace/editor/add-entities-to-view.ts +++ b/src/panels/lovelace/editor/add-entities-to-view.ts @@ -97,9 +97,7 @@ export const addEntitiesToLovelaceView = async ( try { await saveConfig(hass!, null, newConfig); } catch (err: any) { - alert( - hass.localize("ui.panel.config.devices.add_entities.saving_failed") - ); + alert(hass.localize("ui.panel.lovelace.add_entities.saving_failed")); } }, path: [0], @@ -123,9 +121,7 @@ export const addEntitiesToLovelaceView = async ( await saveConfig(hass!, newUrlPath, newConfig); } catch { alert( - hass.localize( - "ui.panel.config.devices.add_entities.saving_failed" - ) + hass.localize("ui.panel.lovelace.add_entities.saving_failed") ); } }, diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 89c5cfb5e6..3539e6f26f 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -31,6 +31,7 @@ import { } from "lit"; import { property, query, state } from "lit/decorators"; import { classMap } from "lit/directives/class-map"; +import { ifDefined } from "lit/directives/if-defined"; import memoizeOne from "memoize-one"; import { isComponentLoaded } from "../../common/config/is_component_loaded"; import { fireEvent } from "../../common/dom/fire_event"; @@ -82,7 +83,10 @@ class HUIRoot extends LitElement { @property({ type: Boolean }) public narrow = false; - @property() public route?: { path: string; prefix: string }; + @property({ attribute: false }) public route?: { + path: string; + prefix: string; + }; @state() private _curView?: number | "hass-unused-entities"; @@ -240,7 +244,7 @@ class HUIRoot extends LitElement { ${this.lovelace!.config.views.map( (view) => html` ` @@ -472,7 +476,7 @@ class HUIRoot extends LitElement { ${this.lovelace!.config.views.map( (view) => html` ` @@ -712,7 +716,7 @@ class HUIRoot extends LitElement { private _showQuickBar(): void { showQuickBar(this, { commandMode: false, - hint: this.hass.localize("ui.dialogs.quick-bar.key_e_hint"), + hint: this.hass.localize("ui.tips.key_e_hint"), }); } diff --git a/src/translations/en.json b/src/translations/en.json index 88bb50cfaa..c7afc5ae3d 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -357,6 +357,7 @@ "triggered_by_homeassistant_starting": "triggered by Home Assistant starting", "show_trace": "[%key:ui::panel::config::automation::editor::show_trace%]", "retrieval_error": "Could not load logbook", + "not_loaded": "[%key:ui::dialogs::helper_settings::platform_not_loaded%]", "messages": { "was_away": "was detected away", "was_at_state": "was detected at {state}", @@ -925,7 +926,8 @@ }, "input_select": { "options": "Options", - "add_option": "Add option", + "add_option": "[%key:ui::panel::config::automation::editor::actions::type::choose::add_option%]", + "remove_option": "[%key:ui::panel::config::automation::editor::actions::type::choose::remove_option%]", "no_options": "There are no options yet.", "add": "Add" },