Rename entity everywhere

When you rename an entity you have to edit all scripts or automations that use this entity. Any chance this could be done by home assistant itself? Kind of auto search and replace?

That would be great indeed! And it seems it was already requested, see link below.

https://community.home-assistant.io/t/refactoring-for-entity-id-in-comparison-to-renaming/

Closed as a duplicate. Please vote and comment at the link above.