Commit 6884fff3 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component:

- Fix Topological Sort of sub_devices
parent f3a34144
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -298,6 +298,7 @@ def populate_endpoints(
    # devices via their controller_id) come before the devices that depend on them.
    graph : Dict[str, Set[str]] = dict()
    for dev_uuid, sub_device in new_sub_devices.items():
        if dev_uuid == device_uuid: continue # current device has no dependencies
        predecesors = graph.setdefault(dev_uuid, set())
        ctrl_uuid = get_device_controller_uuid(sub_device)
        if ctrl_uuid is None: continue # sub_device has no controller