-
Notifications
You must be signed in to change notification settings - Fork 55
state.persist is broken in HA 2022.3 #331
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
It looks like we'll need an "Entity" that extends "RestoreEntity". But we aren't actually using "Entity" at the moment. I believe this will require us to treat all entities similar to how they were handled in PR #129 |
Confirm that I am unable to create persistent state vars with the latest versions of everything installed. This is my first day playing with PyScript and I'm glad to see it's not just me! |
I haven't tested this with any of my actual pyscripts because I'm not quite ready for a 2022.3 upgrade yet. But if any brave souls want to try PR #332 and let me know if it works for you that'd be great. |
Thanks, @dlashua! I just pulled the modified file into my |
@jrowberg glad to hear it. Hopefully, this weekend I'll have some time to fix this properly if @craigbarratt doesn't beat me to it. |
Another thanks to @dlashua! I tried the temporary fix, as well. Seems to work :-)
Note: My persisted states all were on "unknown" after the HASS restart. This is my default value from |
The github master version has @dlashua's fix. I'm leaving this open until it's released. |
home-assistant/core#66068 changed the signature of
async_restore_entity_added
from taking an entitystr
to taking aRestoreEntity
The text was updated successfully, but these errors were encountered: