1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

[http_request] Implement on_error trigger for requests (#7696)

This commit is contained in:
Clyde Stubbs
2024-10-30 12:10:58 +11:00
committed by GitHub
parent aae2ee2ecb
commit ee3ee3a63b
3 changed files with 22 additions and 3 deletions

View File

@@ -12,6 +12,8 @@ esphome:
url: https://esphome.io
headers:
Content-Type: application/json
on_error:
logger.log: "Request failed"
on_response:
then:
- logger.log: