Home AssistantHome AssistantContributors
In code
er.async_getdr.async_getentity_registrydevice_registry
Also
registries, entity registry, device registry

There is one registry for each: the entity registry, the device registry, the area registry, and so on. They are stored in .storage and survive restarts.

Users' changes live in the registries, not in integrations. When a user renames an entity, the integration does not need to know.