home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
4.89k stars 7.25k forks source link

Question: Can I define a function in the python script? #33873

Open LutzFassl opened 3 months ago

LutzFassl commented 3 months ago

Feedback

like def hello_world(): etc... I think this would be not only my question but for a lot of users who visit the python script page. Maybe you can answer it / include the answer on the page?

URL

https://www.home-assistant.io/integrations/python_script/

Version

2024.7.2

Additional information

No response

github-actions[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

LutzFassl commented 1 month ago

yes, I would still appreciate a feedback