mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 01:28:39 +00:00
[speaker_source] Wrap pipeline constant via cg.templatable for TemplatableFn
This commit is contained in:
@@ -312,7 +312,8 @@ async def set_playlist_delay_action_to_code(
|
||||
parent = await cg.get_variable(config[CONF_ID])
|
||||
var = cg.new_Pvariable(action_id, template_arg, parent)
|
||||
|
||||
cg.add(var.set_pipeline(config[CONF_PIPELINE]))
|
||||
template_ = await cg.templatable(config[CONF_PIPELINE], args, cg.uint8)
|
||||
cg.add(var.set_pipeline(template_))
|
||||
|
||||
template_ = await cg.templatable(config[CONF_DELAY], args, cg.uint32)
|
||||
cg.add(var.set_delay(template_))
|
||||
|
||||
Reference in New Issue
Block a user