[core] Make the generated apply function a template argument of ApplyAction and ApplyCondition (#19655)

This commit is contained in:
J. Nick Koston
2026-09-27 12:07:55 +02:00
committed by GitHub
parent 2844236e77
commit a6d525a44e
6 changed files with 106 additions and 59 deletions
@@ -53,8 +53,8 @@ esphome:
# Regression test for esphome/esphome#16224: a light.turn_on action
# nested inside on_response with capture_response: true puts
# `std::string &` into the trigger's Ts..., which exposed a codegen
# bug where the apply lambda's parameter list did not match the
# ApplyFn signature.
# bug where the generated function's parameter list did not match
# the automation's arguments.
- light.turn_on:
id: test_regression_light
brightness: 100%