From 33b67de32e6ef404543253e6e425b13ccd2b7617 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 8 Jan 2019 12:15:03 +0100 Subject: [PATCH] Fix component.update action (#308) Fixes https://github.com/OttoWinter/esphomeyaml/issues/286 --- esphomeyaml/automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/automation.py b/esphomeyaml/automation.py index 8e73a314ca..eda83c6ec1 100644 --- a/esphomeyaml/automation.py +++ b/esphomeyaml/automation.py @@ -295,7 +295,7 @@ COMPONENT_UPDATE_ACTION_SCHEMA = maybe_simple_id({ def component_update_action_to_code(config, action_id, arg_type, template_arg): for var in get_variable(config[CONF_ID]): yield None - rhs = UpdateComponentAction.new(var) + rhs = UpdateComponentAction.new(template_arg, var) type = UpdateComponentAction.template(template_arg) yield Pvariable(action_id, rhs, type=type)