[automation] Fix codegen type for component.resume update_interval (#16069)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
4e0509435a
commit
a460f5343c
1 file changed
+1
-1
@@ -598,7 +598,7 @@ async def component_resume_action_to_code(
|
|||||||
comp = await cg.get_variable(config[CONF_ID])
|
comp = await cg.get_variable(config[CONF_ID])
|
||||||
var = cg.new_Pvariable(action_id, template_arg, comp)
|
var = cg.new_Pvariable(action_id, template_arg, comp)
|
||||||
if CONF_UPDATE_INTERVAL in config:
|
if CONF_UPDATE_INTERVAL in config:
|
||||||
template_ = await cg.templatable(config[CONF_UPDATE_INTERVAL], args, int)
|
template_ = await cg.templatable(config[CONF_UPDATE_INTERVAL], args, cg.uint32)
|
||||||
cg.add(var.set_update_interval(template_))
|
cg.add(var.set_update_interval(template_))
|
||||||
return var
|
return var
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user