scripts organization #747
-
Hello all. How can I organize my scripts in subfolders of /pyscript? I have PyScript 1.6.4 in HA 2025.8.1 working fine. The initial scripts are all in /pyscript. If I move them to a subfolder under pyscript, say pyscript/scripts or pyscript/folder1 or pyscript/scripts/folder1, and reload pyscript I see in logs that the file is loaded fine. When I invoke it from Developer Tools->Action, I get:
If I add an "import pyscript", I get:
If I add an "from pyscript import ( call_service )", I get:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
pyscript module has no such method as |
Beta Was this translation helpful? Give feedback.
pyscript module has no such method as
call_service
. the services are called the way described in the documentation https://hacs-pyscript.readthedocs.io/en/stable/reference.html#calling-servicesif you want to call
pyscript.extract_light_entity_and_device_details
call it usingpyscript.extract_light_entity_and_device_details()