1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00
This commit is contained in:
J. Nick Koston
2025-10-29 16:10:32 -05:00
parent f4d32c7def
commit a849ddd57d
15 changed files with 14 additions and 65 deletions

View File

@@ -10,7 +10,7 @@ esphome:
state: !lambda "return 42.0;"
# Test C++ API: set_template() with stateless lambda (no captures)
# IMPORTANT: set_template() is an internal API. Only stateless lambdas are supported.
# NOTE: set_template() is not intended to be a public API, but we test it to ensure it doesn't break.
- lambda: |-
id(template_sens).set_template([]() -> esphome::optional<float> {
return 123.0f;