Skip to content

Commit 9319c81

Browse files
committed
Revert "Avoid duplicate NodeEvent.LOADED notifications"
This reverts commit 990025c.
1 parent 998d833 commit 9319c81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise_usb/network/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,9 @@ async def _load_discovered_nodes(self) -> bool:
481481
_LOGGER.debug("_load_discovered_nodes | load_result=%s", load_result)
482482
result_index = 0
483483
for mac in nodes_not_loaded:
484-
if not load_result[result_index]:
484+
if load_result[result_index]:
485+
await self._notify_node_event_subscribers(NodeEvent.LOADED, mac)
486+
else:
485487
_LOGGER.debug(
486488
"_load_discovered_nodes | Load request for %s failed", mac
487489
)

0 commit comments

Comments
 (0)