Skip to content

Commit 229df24

Browse files
committed
Re-fix guarding
1 parent f272e62 commit 229df24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/network/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def node_join_available_message(self, response: PlugwiseResponse) -> bool:
244244
f"Invalid response message type ({response.__class__.__name__}) received, expected NodeJoinAvailableResponse"
245245
)
246246
mac = response.mac_decoded
247-
if self.accept_join_request:
247+
if self.accept_join_request and await self.register_node(mac):
248248
await self._notify_node_event_subscribers(NodeEvent.JOIN, mac)
249249
return True
250250

0 commit comments

Comments
 (0)