mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
Fix component.update action (#308)
Fixes https://github.com/OttoWinter/esphomeyaml/issues/286
This commit is contained in:
parent
77514c0a06
commit
d29b280d82
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ COMPONENT_UPDATE_ACTION_SCHEMA = maybe_simple_id({
|
||||||
def component_update_action_to_code(config, action_id, arg_type, template_arg):
|
def component_update_action_to_code(config, action_id, arg_type, template_arg):
|
||||||
for var in get_variable(config[CONF_ID]):
|
for var in get_variable(config[CONF_ID]):
|
||||||
yield None
|
yield None
|
||||||
rhs = UpdateComponentAction.new(var)
|
rhs = UpdateComponentAction.new(template_arg, var)
|
||||||
type = UpdateComponentAction.template(template_arg)
|
type = UpdateComponentAction.template(template_arg)
|
||||||
yield Pvariable(action_id, rhs, type=type)
|
yield Pvariable(action_id, rhs, type=type)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue