mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-15 10:45:41 +01:00
Fix usage of response in http_request.rst samples
This commit is contained in:
parent
9dba019fee
commit
fbb5fe38c8
@ -88,8 +88,8 @@ This :ref:`action <config-action>` sends a GET request.
|
||||
- logger.log:
|
||||
format: 'Response status: %d, Duration: %u ms'
|
||||
args:
|
||||
- status_code
|
||||
- duration_ms
|
||||
- response->status_code
|
||||
- response->duration_ms
|
||||
# Short form
|
||||
- http_request.get: https://esphome.io
|
||||
|
||||
@ -174,8 +174,8 @@ The following variables are available for use in :ref:`lambdas <config-lambda>`:
|
||||
- logger.log:
|
||||
format: "Response status: %d, Duration: %u ms"
|
||||
args:
|
||||
- response.status_code
|
||||
- response.duration_ms
|
||||
- response->status_code
|
||||
- response->duration_ms
|
||||
|
||||
|
||||
.. _http_request-examples:
|
||||
|
Loading…
Reference in New Issue
Block a user