Fix template select lambda (#2198)

This commit is contained in:
Samuel Sieb authored and Jesse Hills committed 2021-08-24 14:26:27 +12:00
1 parent 481e0e98f8
commit 44f8dcfb6e
1 file changed
+1 -1
@@ -55,7 +55,7 @@ async def to_code(config):
if CONF_LAMBDA in config:
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_))