Correctly define SmartModule.call as an async function (#1148)

This commit is contained in:
Steven B. 2024-10-02 16:00:27 +01:00 committed by GitHub
parent 1fcf3e44c2
commit 1026e890a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):