Creating MQTT devices using MQTT sub_device discovery

I have confirmed the via_device input is 1 of the ‘master’ devices identifiers (as they are unique to each device).

Like so:

sub_device_registry_struct = {
    "identifiers": [unique_id],
    "manufacturer": DEV_MANU,
    "connections": dev_connections,
    "name": device.name,
    "sw_version": ver_str,
    "model": model_str,
    "via_device": bridge_device_registry_struct["identifiers"][0],
}

This results in a sub device page that has the Connected via data, like Z2M:

And a master device page that has a Connected devices card: