mirror of
https://github.com/esphome/esphome.git
synced 2024-09-03 00:30:58 +02: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:
parent
ef9e6e4d6e
commit
c3acf08c02
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user