Skip to content

Commit 71a497a

Browse files
author
autoruff
committed
fixup: mdi_CPRegistry Python code reformatted using Ruff
1 parent 105c992 commit 71a497a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

plugwise_usb/network/registry.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ def scan_completed_callback(self, callback: Callable[[], Awaitable[None]]) -> No
118118
self._scan_completed_callback = callback
119119

120120
async def _exec_node_discover_callback(
121-
self, mac: str, node_type: NodeType | None, ping_first: bool,
121+
self,
122+
mac: str,
123+
node_type: NodeType | None,
124+
ping_first: bool,
122125
) -> None:
123126
"""Protect _start_node_discover() callback execution."""
124127
if self._start_node_discover is not None:
@@ -127,13 +130,9 @@ async def _exec_node_discover_callback(
127130
except CancelledError:
128131
raise
129132
except Exception:
130-
_LOGGER.exception(
131-
"start_node_discover callback failed for %s", mac
132-
)
133+
_LOGGER.exception("start_node_discover callback failed for %s", mac)
133134
else:
134-
_LOGGER.debug(
135-
"No start_node_discover callback set; skipping for %s", mac
136-
)
135+
_LOGGER.debug("No start_node_discover callback set; skipping for %s", mac)
137136

138137
# endregion
139138

0 commit comments

Comments
 (0)