Fix #10 - invalid code gen for Template Cover

This commit is contained in:
Brandon Davidson 2018-06-01 13:13:53 -07:00
parent d88634b196
commit b9e590b584

View file

@ -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))