Adding devices to custom integrations

I am making a homeassistant integration for the PoKeys57E controller and would like to add devices connected to my custom component entities. I’ve tried to add devices via device_registry.async_get_or_create however when i do so the devices show up at startup but quickly dissapear, adding devices via DeviceInfo also didn’t work. Can someone explain to me how i should go about adding devices to my integration and assigning the added entities to them. Any help would be much appreciated.

If this is still an issue, post a link to your code and i’ll try and point you in the right direction.