diff --git a/custom_components/pyscript/state.py b/custom_components/pyscript/state.py index f445e24..25c8cf2 100644 --- a/custom_components/pyscript/state.py +++ b/custom_components/pyscript/state.py @@ -326,7 +326,7 @@ async def getattr(cls, var_name): async def get_attr(cls, var_name): """Return a dict of attributes for a state variable - deprecated.""" _LOGGER.warning("state.get_attr() is deprecated: use state.getattr() instead") - return cls.getattr(var_name) + return await cls.getattr(var_name) @classmethod def completions(cls, root):