Skip to content

Commit 2a6c230

Browse files
authored
Merge pull request #18 from ALERTua/state_exist
adds state.exist staticmethod
2 parents 8b50b7a + 3ac7410 commit 2a6c230

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/pyscript_autocomplete/pyscript_builtins.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ def set(name: str, value=None, new_attributes=None, **kwargs):
105105
def setattr(name, value):
106106
...
107107

108+
@staticmethod
109+
def exist(entity_id) -> bool:
110+
...
111+
108112

109113
class event:
110114
@staticmethod

0 commit comments

Comments
 (0)