1. Unplugged oven
2. Opened the top of the oven.
3. Unplugged the existing door lock.
4. Tested to make sure the error went away when turning on the oven. It did which meant that the issue was with the locking sensor switch.
5. Removed the brace over the door lock mechanism
6. Swapped part with the new one.
7. Plugged the door lock mechanism in.
8. Reinstalled brace
9. Closed the stove top / top of oven.
10. Plugged in.