From a725b6c9de06b6619ae1d7102384b84cd53dbe33 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:27:54 +0200 Subject: [PATCH] Clear entityId before duplicate script (#17624) --- src/panels/config/script/ha-script-editor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panels/config/script/ha-script-editor.ts b/src/panels/config/script/ha-script-editor.ts index c9f1048e63..7702331b0c 100644 --- a/src/panels/config/script/ha-script-editor.ts +++ b/src/panels/config/script/ha-script-editor.ts @@ -761,6 +761,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) { }) : await this.confirmUnsavedChanged(); if (result) { + this._entityId = undefined; showScriptEditor({ ...this._config, alias: this._readOnly