Added limitation to the documentation of python scripts. (#37889)

* Update python_script.markdown

Added limitation.

* Tweak

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Bastiaan Bergman 2025-03-10 10:24:45 +01:00 committed by GitHub
parent 92ac3330d9
commit 04cf6b7569
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 [logger-api]: https://docs.python.org/3.7/library/logging.html#logger-objects
{% note %} {% 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 %} {% endnote %}
## Writing your first script, reading input and logging the activity ## Writing your first script, reading input and logging the activity