mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Correctly define SmartModule.call as an async function (#1148)
This commit is contained in:
@@ -136,12 +136,12 @@ class SmartModule(Module):
|
|||||||
"""
|
"""
|
||||||
return {self.QUERY_GETTER_NAME: None}
|
return {self.QUERY_GETTER_NAME: None}
|
||||||
|
|
||||||
def call(self, method, params=None):
|
async def call(self, method, params=None):
|
||||||
"""Call a method.
|
"""Call a method.
|
||||||
|
|
||||||
Just a helper method.
|
Just a helper method.
|
||||||
"""
|
"""
|
||||||
return self._device._query_helper(method, params)
|
return await self._device._query_helper(method, params)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def data(self):
|
def data(self):
|
||||||
|
Reference in New Issue
Block a user