You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom component for easy run Python Scripts from Home Assistant. Better version of default [python_script](https://www.home-assistant.io/integrations/python_script/) component.
**Method 2.** Manually copy `python_script` folder from [latest release](https://github.com/AlexxIT/PythonScriptsPro/releases/latest) to `/config/custom_components` folder.
11
+
Or manually copy `python_script` folder from [latest release](https://github.com/AlexxIT/PythonScriptsPro/releases/latest) to `custom_components` folder.
16
12
17
13
## Configuration
18
14
@@ -41,6 +37,8 @@ python_script:
41
37
- You can pass any variables to your script, just like in the standard `python_script`.
42
38
- The component compile and caches the executable code for faster next launch. If you want change python file without reload HA, you can disable cache with the `cache: false` param.
43
39
40
+
Starting from Home Assistant [2023.7](https://www.home-assistant.io/blog/2023/07/05/release-20237/) the service will return all your script local vars with simple types as respond.
41
+
44
42
The following variables are available in the script:
45
43
- `hass`- The [Home Assistant API](https://www.home-assistant.io/developers/development_hass_object/)
46
44
- `data`- The data passed to the Python Script service call
0 commit comments