Skip to content

Commit 5ceb396

Browse files
committed
Remove unreachable code
1 parent 27a6ec3 commit 5ceb396

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugwise_usb/network/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,10 @@ async def node_join_available_message(self, response: PlugwiseResponse) -> bool:
254254
raise MessageError(
255255
f"Invalid response message type ({response.__class__.__name__}) received, expected NodeJoinAvailableResponse"
256256
)
257+
257258
mac = response.mac_decoded
258259
await self._notify_node_event_subscribers(NodeEvent.JOIN, mac)
259260
return True
260-
261-
_LOGGER.debug("Joining of available Node %s failed", mac)
262-
return False
263261

264262
async def node_rejoin_message(self, response: PlugwiseResponse) -> bool:
265263
"""Handle NodeRejoinResponse messages."""

0 commit comments

Comments
 (0)