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.
1 parent eb4dde9 commit 883caf9Copy full SHA for 883caf9
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