[codegen] Fix templatable uint32 type to use cg.uint32 (#15574)

This commit is contained in:
J. Nick Koston
2026-04-08 09:03:25 -10:00
committed by GitHub
parent a2bd83382b
commit 063a8ce666
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -160,6 +160,6 @@ async def to_code(config):
async def set_total_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)
template_ = await cg.templatable(config[CONF_VALUE], args, int)
template_ = await cg.templatable(config[CONF_VALUE], args, cg.uint32)
cg.add(var.set_total_pulses(template_))
return var
+1 -1
View File
@@ -110,6 +110,6 @@ async def to_code(config):
async def set_total_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)
template_ = await cg.templatable(config[CONF_VALUE], args, int)
template_ = await cg.templatable(config[CONF_VALUE], args, cg.uint32)
cg.add(var.set_total_pulses(template_))
return var