Skip to content

Commit 3fb8747

Browse files
committed
Disable NodeAddRequest response-checking
1 parent ed72805 commit 3fb8747

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise_usb/network/registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ async def register_node(self, mac: str) -> int:
249249
raise NodeError(f"MAC '{mac}' invalid")
250250

251251
request = NodeAddRequest(self._send_to_controller, bytes(mac, UTF8), True)
252-
response = await request.send()
253-
if response is None or response.ack_id != StickResponseType.ACCEPT:
254-
raise NodeError(f"Failed to register node {mac}")
252+
# response = await request.send()
253+
# if response is None or response.ack_id != StickResponseType.ACCEPT:
254+
# raise NodeError(f"Failed to register node {mac}")
255255
self.update_network_registration(self._first_free_address, mac, None)
256256
self._first_free_address += 1
257257
return self._first_free_address - 1

0 commit comments

Comments
 (0)