-
Notifications
You must be signed in to change notification settings - Fork 58
How to create and reload an app #229
-
Hi Guys, im struggling with defining an app in pyscript. I tried both ways, having the app in a single file beneath apps and having the app in a folder containig also the init.py file, the app is also defined in my config.yaml . None of the described ways seems to work, the app is not found on pyscript.reload or HA new start.
Am I missing something?
pyscript:
allow_all_imports: true
hass_is_global: true
apps:
home_server_update:
# 123
- update_log: "test"
Debug log says:
[custom_components.pyscript] load_scripts: skipping /config/pyscript/apps/home_server_update.py (app_name=home_server_update) because config not present
thanks!
Beta Was this translation helpful? Give feedback.
All reactions
I played around a little bit more and I had the pyscript config in an extra file beneath pyscript/config.yaml
which was bound to the configuration of homeassistant by pyscript: !pyscript/config.yaml
. Also I added the pyscript integration on the integrations page of home assistant. After removing integration this and moving the pyscript config to the homeassistant configuration yaml, my apps are detected.
I will try out moving the pyscript config to its own file again and see if it works
Replies: 1 comment 1 reply
-
I played around a little bit more and I had the pyscript config in an extra file beneath pyscript/config.yaml
which was bound to the configuration of homeassistant by pyscript: !pyscript/config.yaml
. Also I added the pyscript integration on the integrations page of home assistant. After removing integration this and moving the pyscript config to the homeassistant configuration yaml, my apps are detected.
I will try out moving the pyscript config to its own file again and see if it works
Beta Was this translation helpful? Give feedback.
All reactions
-
You should mark this discussion as answered.
Beta Was this translation helpful? Give feedback.