WTH is a device trigger 'Unknown' after changing the entity_id

When I add a device to Home Assistant, I usually start off directly by creating automations. E.g. an automation with a device trigger:

Then at a later stage, I discover that the entity_id is a bit generic, and I change it

After that, the automation no longer works, because the trigger has become ‘Unknown’.

This is unexpected in my eyes, because when I select such a trigger from the dropdown, I don’t expect it to link to an entity_id, but rather some sort of link to the device.

I’d like to hear what anyone else thinks about this.

If you change the entity_id you have to change it everywhere you used it previously. If you think that should be changed. Then vote here: WTH is there no "refactor" functionality when changing an entity name?

Closing this as a duplicate.