mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Fix template select lambda (#2198)
This commit is contained in:
parent
eff626248f
commit
e2640c8368
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ async def to_code(config):
|
||||||
|
|
||||||
if CONF_LAMBDA in config:
|
if CONF_LAMBDA in config:
|
||||||
template_ = await cg.process_lambda(
|
template_ = await cg.process_lambda(
|
||||||
config[CONF_LAMBDA], [], return_type=cg.optional.template(str)
|
config[CONF_LAMBDA], [], return_type=cg.optional.template(cg.std_string)
|
||||||
)
|
)
|
||||||
cg.add(var.set_template(template_))
|
cg.add(var.set_template(template_))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue