From 04cf6b756983e8ed908f2d4347c4e619bcc232ab Mon Sep 17 00:00:00 2001 From: Bastiaan Bergman Date: Mon, 10 Mar 2025 10:24:45 +0100 Subject: [PATCH] Added limitation to the documentation of python scripts. (#37889) * Update python_script.markdown Added limitation. * Tweak --------- Co-authored-by: Franck Nijhof --- source/_integrations/python_script.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_integrations/python_script.markdown b/source/_integrations/python_script.markdown index d9894845953..7ebf71101a0 100644 --- a/source/_integrations/python_script.markdown +++ b/source/_integrations/python_script.markdown @@ -28,7 +28,8 @@ Other imports like `min`, `max` are available as builtins. See the [python_scrip [logger-api]: https://docs.python.org/3.7/library/logging.html#logger-objects {% note %} -It is not possible to use Python imports with this integration. If you want to do more advanced scripts, you can take a look at [AppDaemon](https://appdaemon.readthedocs.io/en/latest/) or [pyscript](https://github.com/custom-components/pyscript) + - It is not possible to use Python imports with this integration. If you want to do more advanced scripts, you can take a look at [AppDaemon](https://appdaemon.readthedocs.io/en/latest/) or [pyscript](https://github.com/custom-components/pyscript) + - It is not possible to include your script as a button on the dashboard. A workaround is to create a [helper button](/integrations/input_button/) and create automation to run your script when the button state changes. {% endnote %} ## Writing your first script, reading input and logging the activity