diff --git a/src/panels/config/automation/ha-automation-editor.ts b/src/panels/config/automation/ha-automation-editor.ts index 58baf4add4..505e58726e 100644 --- a/src/panels/config/automation/ha-automation-editor.ts +++ b/src/panels/config/automation/ha-automation-editor.ts @@ -674,6 +674,19 @@ export class HaAutomationEditor extends AutomationScriptEditorMixin${alertText}`, + }); + goBack("/config"); + return; + } const entity = this._entityRegistry.find( (ent) => ent.platform === "automation" && ent.unique_id === this.automationId @@ -685,15 +698,9 @@ export class HaAutomationEditor extends AutomationScriptEditorMixin