WTH When I want to change a device/entity from a trigger/condition/action from an automation, why is HA resetting section?

In an automation, if I want to change some devices/entity in the trigger, conditions or actions, the type/subtype/data is reset.

HA should at least keep these if the device/entity is of the same type.

What would be nice is HA to ask for a new mapping while keep most of the parameters.