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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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): def script_wait_action_to_code(config, action_id, template_arg, args):
paren = yield cg.get_variable(config[CONF_ID]) 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 cg.register_component(var, {})
yield var yield var