mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Correctly define SmartModule.call as an async function (#1148)
This commit is contained in:
parent
1fcf3e44c2
commit
1026e890a1
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user