mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Fix select.set using lambda (#2633)
This commit is contained in:
parent
f1377b560e
commit
23560e608c
1 changed files with 1 additions and 1 deletions
|
@ -90,6 +90,6 @@ async def to_code(config):
|
|||
async def select_set_to_code(config, action_id, template_arg, args):
|
||||
paren = await cg.get_variable(config[CONF_ID])
|
||||
var = cg.new_Pvariable(action_id, template_arg, paren)
|
||||
template_ = await cg.templatable(config[CONF_OPTION], args, str)
|
||||
template_ = await cg.templatable(config[CONF_OPTION], args, cg.std_string)
|
||||
cg.add(var.set_option(template_))
|
||||
return var
|
||||
|
|
Loading…
Reference in a new issue