Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to create and reload an app #229

Answered by Robert1991
Robert1991 asked this question in Q&A
Discussion options

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!

You must be logged in to vote

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

Comment options

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

You must be logged in to vote
1 reply
Comment options

You should mark this discussion as answered.

Answer selected by Robert1991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /