Fix usage of response in http_request.rst samples

This commit is contained in:
Guillermo Ruffino 2024-06-10 17:35:09 -03:00 committed by GitHub
parent 9dba019fee
commit fbb5fe38c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: