1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-28 05:33:53 +00:00

Fix some configs after #5181 (#5209)

This commit is contained in:
Jesse Hills
2023-08-07 11:48:23 +12:00
committed by GitHub
parent 0ae3fcb0b7
commit 00f9af70a9
9 changed files with 27 additions and 22 deletions

View File

@@ -115,7 +115,7 @@ async def animation_action_to_code(config, action_id, template_arg, args):
paren = await cg.get_variable(config[CONF_ID])
var = cg.new_Pvariable(action_id, template_arg, paren)
if frame := config.get(CONF_FRAME):
if (frame := config.get(CONF_FRAME)) is not None:
template_ = await cg.templatable(frame, args, cg.uint16)
cg.add(var.set_frame(template_))
return var