Skip to content

Commit 5563730

Browse files
committed
Update _old_acc_join_req
1 parent 3ebd300 commit 5563730

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise_usb/network/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,10 @@ async def discover_network_coordinator(self, load: bool = False) -> bool:
321321
return await self._load_node(self._controller.mac_coordinator)
322322
if self.accept_join_request and not self._old_acc_join_req:
323323
await self.allow_join_requests(True)
324+
self._old_acc_join_req = True
324325
if not self.accept_join_request and self._old_acc_join_req:
325326
await self.allow_join_requests(False)
327+
self._old_acc_join_req = False
326328
return True
327329

328330
return False

0 commit comments

Comments
 (0)