Fix template select lambda (#2198)

This commit is contained in:
Samuel Sieb 2021-08-23 18:26:59 -07:00 committed by GitHub
parent eff626248f
commit e2640c8368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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