Skip to content

Commit cf0a173

Browse files
committed
Don't check ack_id, might be not applicable
1 parent a68dcf5 commit cf0a173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/network/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async def register_node(self, mac: str) -> int:
252252
try:
253253
response = await request.send()
254254
_LOGGER.debug("NodeAddReq response: %s, %s", response.response_type, response.ack_id)
255-
if response is None or response.ack_id != NodeResponseType.JOIN_ACCEPTED:
255+
if response is None: # or response.ack_id != NodeResponseType.JOIN_ACCEPTED:
256256
raise NodeError(f"Failed to register node {mac}")
257257
except MessageError as exc:
258258
raise MessageError(f"Failed to register Node with {mac}") from exc

0 commit comments

Comments
 (0)