mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Fix #10 - invalid code gen for Template Cover
This commit is contained in:
parent
d88634b196
commit
b9e590b584
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ def to_code(config):
|
||||||
|
|
||||||
if CONF_LAMBDA in config:
|
if CONF_LAMBDA in config:
|
||||||
template_ = process_lambda(config[CONF_LAMBDA], [])
|
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:
|
if CONF_OPEN_ACTION in config:
|
||||||
actions = automation.build_actions(config[CONF_OPEN_ACTION], NoArg)
|
actions = automation.build_actions(config[CONF_OPEN_ACTION], NoArg)
|
||||||
add(make.Ptemplate_.add_open_actions(actions))
|
add(make.Ptemplate_.add_open_actions(actions))
|
||||||
|
|
Loading…
Reference in a new issue