Unable to rename device

I’m trying to rename some devices (mqtt devices) but every time I try to rename them I get “save failed: Entity is already registered”… There is no other device with the same name listed in the Entity Registry or in the MQTT integration. I’ve looked in the .storage\core.entity_registry file and there is nothing there with the name… where else would the device be stored?