Fix template select lambda (#2198)

This commit is contained in:
Samuel Sieb 2021-08-23 18:26:59 -07:00 committed by Jesse Hills
parent 481e0e98f8
commit 44f8dcfb6e
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

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