Skip to content

Commit 7128c53

Browse files
committed
More debug-logging
1 parent 6305d93 commit 7128c53

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugwise_usb/connection/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def hardware_stick(self) -> str | None:
7575
def mac_stick(self) -> str:
7676
"""MAC address of USB-Stick. Raises StickError when not connected."""
7777
if self._mac_stick is None:
78+
_LOGGER.debug("mac_stick: %s", self._mac_stick)
7879
raise StickError(
7980
"No mac address available. Connect and initialize USB-Stick first."
8081
)
@@ -86,6 +87,8 @@ def mac_coordinator(self) -> str:
8687
8788
Raises StickError when not connected.
8889
"""
90+
_LOGGER.debug("mac_coordinator: %s", self._mac_nc)
91+
_LOGGER.debug("is_connected: %s", self._manager.is_connected)
8992
if not self._manager.is_connected or self._mac_nc is None:
9093
raise StickError(
9194
"No mac address available. Connect and initialize USB-Stick first."

0 commit comments

Comments
 (0)