Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repairs showing in homeassistant for each pyscript service #635

Open
mark007 opened this issue Sep 14, 2024 · 1 comment
Open

Repairs showing in homeassistant for each pyscript service #635

mark007 opened this issue Sep 14, 2024 · 1 comment

Comments

@mark007
Copy link

mark007 commented Sep 14, 2024

I declare many pyscript scripts as services, and they all work great, however each time HA boots it reports them as an issue that has to be repaired. When mentioning this in the HA discord, the suggestion was to raise a ticket here to see if it can be resolved. See a screenshot of what I see each time my HA boots.

https://ibb.co/kGbGvYP

@mark007 mark007 changed the title Repairs showing in homeassistant for each service Repairs showing in homeassistant for each pyscript service Sep 14, 2024
@craigbarratt
Copy link
Member

craigbarratt commented Sep 14, 2024

This looks like a startup race condition where the automation is checked for errors before pyscript has started. pyscript doesn't run the user's scripts until HASS issues the EVENT_HOMEASSISTANT_STARTED event. We'd have to figure out how to have the startup checking happen after pyscript is initialized. I didn't want to start pyscript earlier than EVENT_HOMEASSISTANT_STARTED since the user's scripts might need other components loaded, and that's not guaranteed until that event occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants