diff --git a/src/panels/config/automation/automation-rename-dialog/dialog-automation-rename.ts b/src/panels/config/automation/automation-rename-dialog/dialog-automation-rename.ts index 29e304208d62..fd1af192f8eb 100644 --- a/src/panels/config/automation/automation-rename-dialog/dialog-automation-rename.ts +++ b/src/panels/config/automation/automation-rename-dialog/dialog-automation-rename.ts @@ -41,7 +41,9 @@ class DialogAutomationRename extends LitElement implements HassDialog { this._newIcon = "icon" in params.config ? params.config.icon : undefined; this._newName = params.config.alias || - this.hass.localize("ui.panel.config.automation.editor.default_name"); + this.hass.localize( + `ui.panel.config.${this._params.domain}.editor.default_name` + ); this._newDescription = params.config.description || ""; } @@ -83,7 +85,7 @@ class DialogAutomationRename extends LitElement implements HassDialog { dialogInitialFocus .value=${this._newName} .placeholder=${this.hass.localize( - "ui.panel.config.automation.editor.default_name" + `ui.panel.config.${this._params.domain}.editor.default_name` )} .label=${this.hass.localize( "ui.panel.config.automation.editor.alias"