Fix sequence action copy-paste (#27652)

This commit is contained in:
karwosts
2025-11-08 06:50:38 -08:00
committed by GitHub
parent 1cd7a1cd78
commit 9091df9db5
3 changed files with 12 additions and 2 deletions

View File

@@ -371,7 +371,11 @@ export class HaManualScriptEditor extends LitElement {
}
}
if (!["sequence", "unknown"].includes(getActionType(config))) {
const actionType = getActionType(config);
if (
!["sequence", "unknown"].includes(actionType) ||
(actionType === "sequence" && "metadata" in config)
) {
config = { sequence: [config] };
}