Skip to content

Commit 045f4e6

Browse files
committed
Don't guard in node_join_available_message()
1 parent f5953c1 commit 045f4e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugwise_usb/network/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,8 @@ async def node_join_available_message(self, response: PlugwiseResponse) -> bool:
252252
f"Invalid response message type ({response.__class__.__name__}) received, expected NodeJoinAvailableResponse"
253253
)
254254
mac = response.mac_decoded
255-
if self.accept_join_request:
256-
await self._notify_node_event_subscribers(NodeEvent.JOIN, mac)
257-
return True
255+
await self._notify_node_event_subscribers(NodeEvent.JOIN, mac)
256+
return True
258257

259258
_LOGGER.debug("Joining of available Node %s failed", mac)
260259
return False

0 commit comments

Comments
 (0)