Skip to content

Commit ce7ea30

Browse files
committed
Avoid duplicate NodeEvent.LOADED notifications
1 parent 7821b13 commit ce7ea30

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugwise_usb/network/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,7 @@ async def _load_discovered_nodes(self) -> bool:
479479
_LOGGER.debug("_load_discovered_nodes | load_result=%s", load_result)
480480
result_index = 0
481481
for mac in nodes_not_loaded:
482-
if load_result[result_index]:
483-
await self._notify_node_event_subscribers(NodeEvent.LOADED, mac)
484-
else:
482+
if not load_result[result_index]:
485483
_LOGGER.debug(
486484
"_load_discovered_nodes | Load request for %s failed", mac
487485
)

0 commit comments

Comments
 (0)