Change entity names

Hello guys!

I was thinking about it some time ago and I think it would be much easier to handle entity change names if the new name would be followed up on everything it uses.
For example if I use a sensor for automation or scripts or a utility meter in yaml and change the sensor’s entity name I have to manually modify everything it previously used with the old name. The most annoying is to find them in yamls and correct them then restart HA. Very time consuming
Maybe some of you found a workaround method but I think if this would be supported in HA natively it would be much easier.

I just use the find and replace in the VS-code

image