mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
@@ -50,6 +50,7 @@ def globals_set_to_code(config, action_id, template_arg, args):
|
||||
full_id, paren = yield cg.get_variable_with_full_id(config[CONF_ID])
|
||||
template_arg = cg.TemplateArguments(full_id.type, *template_arg)
|
||||
var = cg.new_Pvariable(action_id, template_arg, paren)
|
||||
templ = yield cg.templatable(config[CONF_VALUE], args, None)
|
||||
templ = yield cg.templatable(config[CONF_VALUE], args, None,
|
||||
to_exp=cg.RawExpression)
|
||||
cg.add(var.set_value(templ))
|
||||
yield var
|
||||
|
Reference in New Issue
Block a user