Fix setting pcf85063.start_timer action variable
This commit is contained in:
parent
7c3016349b
commit
d98d1cabd5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue