From b9e590b58492bfcbb2114bfa55c3051637337be6 Mon Sep 17 00:00:00 2001 From: Brandon Davidson Date: Fri, 1 Jun 2018 13:13:53 -0700 Subject: [PATCH] Fix #10 - invalid code gen for Template Cover --- esphomeyaml/components/cover/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/components/cover/template.py b/esphomeyaml/components/cover/template.py index afcaee117f..9b785e45cc 100644 --- a/esphomeyaml/components/cover/template.py +++ b/esphomeyaml/components/cover/template.py @@ -25,7 +25,7 @@ def to_code(config): if CONF_LAMBDA in config: template_ = process_lambda(config[CONF_LAMBDA], []) - add(make.Ptemplate.set_state_lambda(template_)) + add(make.Ptemplate_.set_state_lambda(template_)) if CONF_OPEN_ACTION in config: actions = automation.build_actions(config[CONF_OPEN_ACTION], NoArg) add(make.Ptemplate_.add_open_actions(actions))