We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cc057b commit 2b3ec02Copy full SHA for 2b3ec02
1 file changed
plugwise_usb/__init__.py
@@ -191,7 +191,7 @@ def accept_join_request(self) -> bool | None:
191
return self._network.accept_join_request
192
193
@accept_join_request.setter
194
- def accept_join_request(self, state: bool) -> None:
+ async def accept_join_request(self, state: bool) -> None:
195
"""Configure join request setting."""
196
if not self._controller.is_connected:
197
raise StickError(
@@ -206,7 +206,7 @@ def accept_join_request(self, state: bool) -> None:
206
)
207
208
self._network.accept_join_request = state
209
- task = create_task(self._network.allow_join_requests(state))
+ await self._network.allow_join_requests(state)
210
211
async def clear_cache(self) -> None:
212
"""Clear current cache."""
0 commit comments