Clear entityId before duplicate script (#17624)

This commit is contained in:
Simon Lamon 2023-08-21 15:27:54 +02:00 committed by GitHub
parent 014bbf12ce
commit a725b6c9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -761,6 +761,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
})
: await this.confirmUnsavedChanged();
if (result) {
this._entityId = undefined;
showScriptEditor({
...this._config,
alias: this._readOnly