Skip to content

Commit 3ed0bc0

Browse files
committed
CR: fix function template, not sure what to do with the bool though
1 parent f8f0b93 commit 3ed0bc0

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
@@ -47,7 +47,7 @@ def __init__(
4747
self._first_free_address: int = 65
4848
self._registration_task: Task[None] | None = None
4949
self._start_node_discover: (
50-
Callable[[str, NodeType | None, bool], Awaitable[None]] | None
50+
Callable[[str, NodeType | None, bool], Awaitable[bool]] | None
5151
) = None
5252
self._full_scan_finished: Callable[[], Awaitable[None]] | None = None
5353
self._registration_scan_delay: float = CIRCLEPLUS_SCANREQUEST_MAINTENANCE
@@ -102,7 +102,7 @@ def scan_completed(self) -> bool:
102102
return self._scan_completed
103103

104104
def start_node_discover(
105-
self, callback: Callable[[str, NodeType | None, bool], Awaitable[None]]
105+
self, callback: Callable[[str, NodeType | None, bool], Awaitable[bool]]
106106
) -> None:
107107
"""Register method to be called when a node is found."""
108108
self._start_node_discover = callback

0 commit comments

Comments
 (0)