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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user