From c3acf08c024c6d042a0c14731805c0c73364dc19 Mon Sep 17 00:00:00 2001 From: Samuel Sieb Date: Sat, 11 Jul 2020 14:32:10 -0700 Subject: [PATCH] fix script.wait action (#1120) Co-authored-by: Samuel Sieb Co-authored-by: Guillermo Ruffino --- esphome/components/script/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/script/__init__.py b/esphome/components/script/__init__.py index 4437fa8d9e..5075bb1f56 100644 --- a/esphome/components/script/__init__.py +++ b/esphome/components/script/__init__.py @@ -48,7 +48,7 @@ def script_stop_action_to_code(config, action_id, template_arg, args): })) def script_wait_action_to_code(config, action_id, template_arg, args): paren = yield cg.get_variable(config[CONF_ID]) - var = cg.new_Pvariable(action_id, template_arg, paren) + var = yield cg.new_Pvariable(action_id, template_arg, paren) yield cg.register_component(var, {}) yield var