[script] Fix array-type parameters in script.execute (#16374)

This commit is contained in:
J. Nick Koston
2026-05-12 12:17:23 -05:00
committed by GitHub
parent 365ed19319
commit 727c74da3f
4 changed files with 125 additions and 0 deletions
+2
View File
@@ -169,6 +169,8 @@ async def script_execute_action_to_code(config, action_id, template_arg, args):
return value
if type == "bool":
return cg.RawExpression(str(value).lower())
if isinstance(value, (list, tuple)):
return cg.ArrayInitializer(*value)
return cg.RawExpression(str(value))
return converter