mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:23:19 +00:00
[http_request] Add regression test for light action inside on_response (#16270)
This commit is contained in:
@@ -50,12 +50,33 @@ esphome:
|
||||
format: "After delay, body still: %s"
|
||||
args:
|
||||
- body.c_str()
|
||||
# Regression test for esphome/esphome#16224: a LightControlAction
|
||||
# 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.
|
||||
- light.turn_on:
|
||||
id: test_regression_light
|
||||
brightness: 100%
|
||||
effect: "None"
|
||||
|
||||
http_request:
|
||||
useragent: esphome/tagreader
|
||||
timeout: 10s
|
||||
verify_ssl: ${verify_ssl}
|
||||
|
||||
output:
|
||||
- platform: template
|
||||
id: test_regression_output
|
||||
type: float
|
||||
write_action:
|
||||
- logger.log: "set"
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
id: test_regression_light
|
||||
output: test_regression_output
|
||||
|
||||
script:
|
||||
- id: does_not_compile
|
||||
parameters:
|
||||
|
||||
Reference in New Issue
Block a user