From 93e7927686c31bd7e5177762e20b61a6b89e4b19 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 2 Sep 2022 19:02:50 +0200 Subject: [PATCH] Fix automation trace link (#13563) --- src/panels/config/automation/ha-automation-editor.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/panels/config/automation/ha-automation-editor.ts b/src/panels/config/automation/ha-automation-editor.ts index 2d4e5a4afe..70c0d5a7f0 100644 --- a/src/panels/config/automation/ha-automation-editor.ts +++ b/src/panels/config/automation/ha-automation-editor.ts @@ -144,15 +144,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) { - ${stateObj - ? html` - + ${stateObj && this._config + ? html` + ${this.hass.localize( "ui.panel.config.automation.editor.show_trace" )}