From 1026e890a1df071c374be335ad694c5e82408d59 Mon Sep 17 00:00:00 2001 From: "Steven B." <51370195+sdb9696@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:00:27 +0100 Subject: [PATCH] Correctly define SmartModule.call as an async function (#1148) --- kasa/smart/smartmodule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kasa/smart/smartmodule.py b/kasa/smart/smartmodule.py index 9372b65d..381ce233 100644 --- a/kasa/smart/smartmodule.py +++ b/kasa/smart/smartmodule.py @@ -136,12 +136,12 @@ class SmartModule(Module): """ return {self.QUERY_GETTER_NAME: None} - def call(self, method, params=None): + async def call(self, method, params=None): """Call a method. Just a helper method. """ - return self._device._query_helper(method, params) + return await self._device._query_helper(method, params) @property def data(self):