How do custom components work in regards to naming the device along with child entities

I’ve been messing with a custom component I’ve developed and I’m stuck at figuring out what to do in order for the device to take the name of one of the entities, while the other entity is just associated to the device. As it stands this is for a blind device. I have 2 python files, cover.py and sensor.py. The cover.py is for the cover, the sensor.py is for a sensor that is the battery level for the device. What’s happening right now is my devices are called “ABlind Battery Level” with 2 entities “ABlind” and “ABlind Battery Level”. I don’t know what to change in order to get it reversed meaning the device is called “ABlind” and it contains 2 entities “ABlind” and “ABlind Battery Level”. Is this controlled by the order that async_add_entities is called? Currently async_add_entities is called first for the cover and then called for the Battery Level. Is the last call the one that names the device or does it have to do with the device_info property?

Here’s the 2 device_info properties:
Cover:

        return {
            "identifiers": {
                ("MyCompany", "BLINDS:ablind")
            },
            "via_device": ("MyCompany", "BLINDS:ablind"),
            "name": "ABlind",
            "manufacturer": "MyCompany",
            "model": "MyModel"

Battery Level:

        return {
            "identifiers": {
                ("MyCompany", "BLINDS:ablind")
            },
            "via_device": ("MyCompany", "BLINDS:ablind"),
            "name": "ABlind Battery Level",
            "manufacturer": "MyCompany",
            "model": "MyModel"
        }

The current setup leaves me with a device called “ABlind Battery Level” with 2 contained entities “ABlind” and “ABlind Battery Level”

Any help on what I need to change to end up with the result of a device called “ABlind” with 2 contained entities “ABlind” and “ABlind Battery Level”

The name in the device desceiption should be the device name. You should have a name property on your cover and sensor entities for their name. As such, both your code examples should be “name”: “ABlind”