Another way, but a bit more complex, is to open the file with the "wrong" components in it.
Then bring in the proper component from your library, just one copy is needed.
Move it close to one "wrong" component or a copy of it.
Copy the proper component to the clipboard.
Open to edit the "wrong" component and delete all its entities. Basically you want an empty bounding box, but you may elect to keep 1 or 2 lines of the old entities for alignment purposes.
Paste-in-place the proper component and move it into its correct position, now inside the "wrong" components bounding box. Then explode the proper component. The "wrong" component is now fixed, retaining the old name and attributes. Close the component and delete the copy you brought in.