Skip to content

Commit 9abd9df

Browse files
committed
Improve debug message
1 parent a3df0a8 commit 9abd9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/network/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def registry(self) -> dict[int, tuple[str, NodeType | None]]:
150150
async def register_node(self, mac: str) -> bool:
151151
"""Register node to Plugwise network."""
152152
if not validate_mac(mac):
153-
raise NodeError(f"Invalid mac '{mac}' to register")
153+
raise NodeError(f"MAC '{mac}' invalid")
154154
address = await self._register.register_node(mac)
155155
return await self._discover_node(address, mac, None)
156156

0 commit comments

Comments
 (0)