[cover] Fix ControlAction / CoverPublishAction trigger args with reference types (#16227)

This commit is contained in:
J. Nick Koston
2026-05-05 18:27:18 -05:00
committed by GitHub
parent 67491c3194
commit 4404dd68ba
3 changed files with 37 additions and 6 deletions
@@ -369,6 +369,19 @@ number:
- valve.control:
id: template_valve
position: !lambda "return x / 100.0f;"
# Same regression test for cover.control: forces the apply-lambda
# codegen to handle a non-empty trigger Ts (float).
- platform: template
id: template_cover_position_number
optimistic: true
min_value: 0
max_value: 100
step: 1
on_value:
then:
- cover.control:
id: template_cover_with_triggers
position: !lambda "return x / 100.0f;"
select:
- platform: template