[ezo_pmp] Fix change_i2c_address action using wrong template type (#15393)

This commit is contained in:
Jonathan Swoboda
2026-04-03 08:35:16 -04:00
committed by GitHub
parent 8360502a94
commit 6fecd72049

View File

@@ -286,7 +286,7 @@ async def ezo_pmp_change_i2c_address_to_code(config, action_id, template_arg, ar
paren = await cg.get_variable(config[CONF_ID])
var = cg.new_Pvariable(action_id, template_arg, paren)
template_ = await cg.templatable(config[CONF_ADDRESS], args, cg.double)
template_ = await cg.templatable(config[CONF_ADDRESS], args, cg.int_)
cg.add(var.set_address(template_))
return var