From d98d1cabd5b27dbc24e9dff72311434aa96a5685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Thu, 17 Aug 2023 22:04:40 +0000 Subject: [PATCH] Fix setting pcf85063.start_timer action variable --- esphome/components/pcf85063/time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/pcf85063/time.py b/esphome/components/pcf85063/time.py index 4386cd5..75cd96a 100644 --- a/esphome/components/pcf85063/time.py +++ b/esphome/components/pcf85063/time.py @@ -81,8 +81,8 @@ def validate_timer_seconds(value): async def pcf85063_start_timer_to_code(config, action_id, template_arg, args): var = cg.new_Pvariable(action_id, template_arg) - #template_ = await cg.templatable(config[CONF_INTERVAL], args, cv.TimePeriodSeconds) - #cg.add(var.timer_seconds_(template_)) + template_ = await cg.templatable(config[CONF_INTERVAL], args, cv.TimePeriodSeconds) + cg.add(var.set_timer_seconds(template_)) await cg.register_parented(var, config[CONF_ID]) return var