I have noted that if I use the swap devices feature, states from the original device are copied to the replacement device even if the device doesn't feature the attribute.
Example
If the original device has temperature, humidity, and motion, but the replacement only had motion and temperature. The replacement device will now list the unused humidity attribute in its current states as well as in rule machine and other apps.
Is there a way to remove the invalid attribute states from the replacement device after using the swap devices feature?