mirror of
https://github.com/esphome/esphome.git
synced 2026-10-04 02:05:59 +00:00
[script] Fix array-type parameters in script.execute (#16374)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user