Skip to content

Commit 43aa488

Browse files
authored
Merge pull request #88 from dlashua/patch-3
await in deprecated get_attr
2 parents eb4dde9 + 883caf9 commit 43aa488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/pyscript/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ async def getattr(cls, var_name):
326326
async def get_attr(cls, var_name):
327327
"""Return a dict of attributes for a state variable - deprecated."""
328328
_LOGGER.warning("state.get_attr() is deprecated: use state.getattr() instead")
329-
return cls.getattr(var_name)
329+
return await cls.getattr(var_name)
330330

331331
@classmethod
332332
def completions(cls, root):

0 commit comments

Comments
 (0)