Closed
Description
It is currently possible to declare new state from pyscript very easily like some_domain.abc = 'def'
, even if some_domain
or some_domain.abc
does not yet exist.
This is very helpful for scripts that want to define their own state. However these states are not automatically persisted when home assistant restarts. A workaround is for the user to manually precreate a input_text.abc
helper then manipulating that from pyscript.
However this is rather inconvenient because for every state variable the user has to perform some manual tasks.
So it would be nice if it was somehow possible to define restorable states from pyscript.
Metadata
Metadata
Assignees
Labels
No labels