[light] Fix LightControlAction trigger args with reference types (#16220)

This commit is contained in:
J. Nick Koston
2026-05-03 19:44:01 -05:00
committed by GitHub
parent cf223674e5
commit 41bd570d30
3 changed files with 35 additions and 5 deletions
+15
View File
@@ -127,6 +127,21 @@ esphome:
blue: 0%
transition_length: 1s
# Exercise light actions inside a trigger with non-empty Ts (number on_value
# passes float).
number:
- platform: template
id: test_number_brightness
optimistic: true
min_value: 0
max_value: 100
step: 1
on_value:
then:
- light.turn_on:
id: test_monochromatic_light
brightness: !lambda "return x / 100.0;"
light:
- platform: binary
id: test_binary_light