We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb4dde9 + 883caf9 commit 43aa488Copy full SHA for 43aa488
custom_components/pyscript/state.py
@@ -326,7 +326,7 @@ async def getattr(cls, var_name):
326
async def get_attr(cls, var_name):
327
"""Return a dict of attributes for a state variable - deprecated."""
328
_LOGGER.warning("state.get_attr() is deprecated: use state.getattr() instead")
329
- return cls.getattr(var_name)
+ return await cls.getattr(var_name)
330
331
@classmethod
332
def completions(cls, root):
0 commit comments