From 883caf98f3c6dbcde16e72e2d8bf63e50230736e Mon Sep 17 00:00:00 2001 From: Daniel Lashua Date: Tue, 10 Nov 2020 07:45:14 -0600 Subject: [PATCH] await in deprecated get_attr --- custom_components/pyscript/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):