Change entity name?

is it possible to change an entity name? I remember awhile back there being an entity config file you could edit. I dont see that anymore.

I had a sonos replaced and the new one is coming up as media_player.living_room_2 and killing a bunch of automations. Im looking for a way to change that to media_player.living_room

Alternatively, in a lot of text editors you can find/replace. Atom lets you search an entire project and find/replace a value. Ive used it a few times in cases like this.

thx, didnt know you could do in the ui. i use sublime to edit but dont know the file name

no worries im good