Fix setting pcf85063.start_timer action variable

This commit is contained in:
Odd Stråbø 2023-08-17 22:04:40 +00:00
parent 7c3016349b
commit d98d1cabd5

View file

@ -81,8 +81,8 @@ def validate_timer_seconds(value):
async def pcf85063_start_timer_to_code(config, action_id, template_arg, args): async def pcf85063_start_timer_to_code(config, action_id, template_arg, args):
var = cg.new_Pvariable(action_id, template_arg) var = cg.new_Pvariable(action_id, template_arg)
#template_ = await cg.templatable(config[CONF_INTERVAL], args, cv.TimePeriodSeconds) template_ = await cg.templatable(config[CONF_INTERVAL], args, cv.TimePeriodSeconds)
#cg.add(var.timer_seconds_(template_)) cg.add(var.set_timer_seconds(template_))
await cg.register_parented(var, config[CONF_ID]) await cg.register_parented(var, config[CONF_ID])
return var return var