Skip to content

Commit d06fc9d

Browse files
committed
Output bool from set_accept_join_request()
1 parent 0a9e058 commit d06fc9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise_usb/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def accept_join_request(self) -> bool | None:
190190
return None
191191
return self._network.accept_join_request
192192

193-
async def set_accept_join_request(self, state: bool) -> None:
193+
async def set_accept_join_request(self, state: bool) -> bool:
194194
"""Configure join request setting."""
195195
if not self._controller.is_connected:
196196
raise StickError(
@@ -210,6 +210,7 @@ async def set_accept_join_request(self, state: bool) -> None:
210210
await self._network.allow_join_requests(state)
211211
except (MessageError, NodeError) as exc:
212212
raise NodeError(f"Failed setting accept joining: {exc}") from exc
213+
return True
213214

214215
async def clear_cache(self) -> None:
215216
"""Clear current cache."""

0 commit comments

Comments
 (0)