-
Notifications
You must be signed in to change notification settings - Fork 55
HA never restarts with pyscript activated #45
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
Comments
I have been having a similar issue (Home Assistant won't restart). I suspected pyscript might be the culprit, but haven't been able to nail it down yet. |
Could you try pyscript |
@craigbarratt , sorry, same behavior in 0.30.
Sorry, forgot debugging. |
Ok, thanks for confirming Is pyscript loading or running any scripts? The debug output should be helpful. |
Ok, here's all about pyscript debug log from a HA start to restart.
Here's the one script i'm playing with at the moment.
I also tried it without a script in the pyscript folder, issue persists. |
On 0.31.
Logs:
No pyscript files in pyscript directory at all. No other integrations activated other than pyscript. Clean, default install. The same issue is exhibited when running HASS on the command line. CTRL-C produces the "stopping triggers" log line... and then nothing after that until a second CTRL-C is pressed, at which point the "KeyboardInterrupt" exception is thrown. |
Ok, thanks, now I understand what the issue is. I thought it was not correctly restarting from the command-line (ie, quit and re-start I can recreate this now. Thanks - now off to debugging... |
Tested the same in my play vm with Home Assistant OS.
|
Just pushed a fix: cd87d2e. Please try the master version. |
That fixed it for me! Thanks! |
@VDRainer - looking at your code, there are a couple of places where you should cast state variables to For example, this comparison:
should be:
(or
should be (although the string argument appears to work in this case):
|
Issue is fixed, HA restarts.
But it works. 😄 EDIT: You're right. It didn't raise an error, but it didn't work. |
I'm running HA 0.116.3 in a python3.8 venv on Ubuntu 18.04.
Installed pyscript via HASS and tried both options, UI Integration and
pyscript
in configuration.yaml.First script runs very well and i like it.
BUT
I cannot restart HA anymore.
It looks like HA stops because there are no more new lines in home-assistant.log but my screen session where the hass process runs shows tons of tracebacks and i have to kill the process.
After removing from integration or in configuration.yaml, HA restart works normal.
The text was updated successfully, but these errors were encountered: