8000 Correctly define SmartModule.call as an async function (#1148) · msz-coder/python-kasa@1026e89 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1026e89

Browse files
authored
Correctly define SmartModule.call as an async function (python-kasa#1148)
1 parent 1fcf3e4 commit 1026e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kasa/smart/smartmodule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ def query(self) -> dict:
136136
"""
137137
return {self.QUERY_GETTER_NAME: None}
138138

139-
def call(self, method, params=None):
139+
async def call(self, method, params=None):
140140
"""Call a method.
141141
142142
Just a helper method.
143143
"""
144-
return self._device._query_helper(method, params)
144+
return await self._device._query_helper(method, params)
145145

146146
@property
147147
def data(self):

0 commit comments

Comments
 (0)
0