Skip to content

Commit

Permalink
adds state.exist classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
ALERTua committed Sep 10, 2024
1 parent 8414059 commit 646bded
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/pyscript/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def register_functions(cls):
"state.get_attr": cls.get_attr, # deprecated form; to be removed
"state.persist": cls.persist,
"state.delete": cls.delete,
"state.exist": cls.exist,
"pyscript.config": cls.pyscript_config,
}
Function.register(functions)
Expand Down

0 comments on commit 646bded

Please sign in to comment.