1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-17 17:23:45 +01:00

Fix HttpRequestResponseTrigger again (#4285)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
fixes https://github.com/esphome/issues/issues/4010
This commit is contained in:
Garret Buell
2023-01-10 17:50:01 -08:00
committed by GitHub
parent 530df91044
commit a19f0c0db0
4 changed files with 40 additions and 2 deletions

View File

@@ -25,3 +25,4 @@ Current test_.yaml file contents.
| test4.yaml | ESP32 | ethernet | None
| test5.yaml | ESP32 | wifi | ble_server
| test6.yaml | RP2040 | wifi | N/A
| test7.yaml | ESP32-C3 | wifi | N/A

33
tests/test7.yaml Normal file
View File

@@ -0,0 +1,33 @@
# Tests for ESP32-C3 boards which use toolchain-riscv32-esp
---
wifi:
ssid: 'ssid'
esp32:
board: lolin_c3_mini
framework:
type: arduino
esphome:
name: 'on-response-test'
on_boot:
then:
- http_request.send:
method: PUT
url: https://esphome.io
headers:
Content-Type: application/json
body: Some data
verify_ssl: false
on_response:
then:
- logger.log:
format: "Response status: %d"
args:
- status_code
logger:
http_request:
useragent: esphome/tagreader
timeout: 10s