From 75463f1522cd30996c0392a75ac0564ff0459ee5 Mon Sep 17 00:00:00 2001 From: koopee Date: Fri, 3 May 2024 13:27:25 +0300 Subject: [PATCH] Update python_script.markdown (#32579) Co-authored-by: Franck Nijhof --- source/_integrations/python_script.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/python_script.markdown b/source/_integrations/python_script.markdown index 49069c5f987..0bb9c2ff22d 100644 --- a/source/_integrations/python_script.markdown +++ b/source/_integrations/python_script.markdown @@ -129,7 +129,7 @@ The above `python_script` can be called using the following YAML as an input. rgb_color: [255, 0, 0] ``` -Services can also respond with data. Retrieving this data in your Python script can be done by setting the `blocking` and `return_response` arguments of the `hass.services.call` function to `True`. This is shown in the example below, in this case, retrieving the weather forecast and putting it into a variable: +Services can also respond with data. Retrieve this data in your Python script by setting the `blocking` and `return_response` arguments of the `hass.services.call` function to `True`. The example below retrieves the weather forecast and assigns it to the `current_forecast` variable: ```python # get_forecast.py