Skip to content

Commit 0cf0a70

Browse files
committed
Debug network_address()
1 parent 01f7bb6 commit 0cf0a70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise_usb/network/registry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ async def retrieve_network_registration(
152152

153153
def network_address(self, mac: str) -> int | None:
154154
"""Return the network registration address for given mac."""
155+
_LOGGER.debug("Finding registration address of %", mac)
155156
for address, registration in self._registry.items():
156157
registered_mac, _ = registration
158+
_LOGGER.debug("address: %s | mac: %s", address, registered_mac)
157159
if mac == registered_mac:
158160
return address
159161
return None

0 commit comments

Comments
 (0)