Skip to content

Commit a68dcf5

Browse files
committed
Fixes
1 parent 90f95ff commit a68dcf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise_usb/network/registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
NodeRemoveRequest,
1818
PlugwiseRequest,
1919
)
20-
from ..messages.responses import PlugwiseResponse
20+
from ..messages.responses import NodeResponseType, PlugwiseResponse
2121
from .cache import NetworkRegistrationCache
2222

2323
_LOGGER = logging.getLogger(__name__)
@@ -251,7 +251,7 @@ async def register_node(self, mac: str) -> int:
251251
request = NodeAddRequest(self._send_to_controller, bytes(mac, UTF8), True)
252252
try:
253253
response = await request.send()
254-
_LOGGER.debug("NodeAddReq response: %s, %s", response.name, response.ack_id)
254+
_LOGGER.debug("NodeAddReq response: %s, %s", response.response_type, response.ack_id)
255255
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:

0 commit comments

Comments
 (0)