[valve] Fix ControlAction trigger args with reference types

`const Ts &...` is ill-formed when Ts is already a reference (e.g. a
trigger that passes `std::string &`). Forward Ts by-value so the
generated lambda matches ApplyFn for any valid trigger arg type.
This commit is contained in:
J. Nick Koston
2026-05-03 16:12:08 -05:00
parent 8046ff7e1e
commit fb6920a5b1
3 changed files with 20 additions and 3 deletions
@@ -356,6 +356,19 @@ number:
min_value: 0
max_value: 100
step: 1
# Exercise valve.control inside a trigger with non-empty Ts (number on_value
# passes float).
- platform: template
id: template_valve_position_number
optimistic: true
min_value: 0
max_value: 100
step: 1
on_value:
then:
- valve.control:
id: template_valve
position: !lambda "return x / 100.0f;"
select:
- platform: template