From 658a59d0284183c5c4edae96ab1e79ba8c6fcfc0 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Wed, 6 Dec 2023 17:58:39 +0000 Subject: [PATCH] Apply code review comments --- src/panels/config/automation/ha-automation-trace.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/panels/config/automation/ha-automation-trace.ts b/src/panels/config/automation/ha-automation-trace.ts index 38787a7b8f6d..868f4a8feba9 100644 --- a/src/panels/config/automation/ha-automation-trace.ts +++ b/src/panels/config/automation/ha-automation-trace.ts @@ -76,12 +76,7 @@ export class HaAutomationTrace extends LitElement { @state() private _logbookEntries?: LogbookEntry[]; - @state() private _view: - | "details" - | "config" - | "timeline" - | "logbook" - | "blueprint" = "details"; + @state() private _view: (typeof TABS)[number] | "blueprint" = "details"; @query("hat-script-graph") private _graph?: HatScriptGraph; @@ -292,7 +287,7 @@ export class HaAutomationTrace extends LitElement { .renderedNodes=${renderedNodes!} > ` - : this._view === "config" + : this._view === "automation_config" ? html`