1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

fix script.wait action (#1120)

Co-authored-by: Samuel Sieb <samuel@sieb.net>
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
Samuel Sieb
2020-07-11 14:32:10 -07:00
committed by GitHub
parent ef9e6e4d6e
commit c3acf08c02

View File

@@ -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