From 646bded15d3f424915c9a061fb8c257ad56fa537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexey=20ALERT=20Rubash=D1=91ff?= Date: Tue, 10 Sep 2024 10:11:44 +0300 Subject: [PATCH] adds state.exist classmethod --- custom_components/pyscript/state.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/pyscript/state.py b/custom_components/pyscript/state.py index c057936..88130b0 100644 --- a/custom_components/pyscript/state.py +++ b/custom_components/pyscript/state.py @@ -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)