Product review (4 stars): Easy enough to replace
Our Affinity front load washer kept flashing the error code "dr" and beeping 4 times. It did this over and over as long as the power was plugged in. Other online forums say you should replace the door lock mechanism which I did. But when I plugged it back in, the problem came back.

THE TRICK that worked is: you have to break rule number one for working with electrical things and leave the power plugged in! Then open the door and peel back the rubber seal/boot. (You may need to remove a spring loaded metal ring  that's hidden inside the groove of the seal.)
Then reach inside to the right. Find the door lock mechanism. Unplug the bottom connector. (The one to the wax motor.) You will hear a clunk sound. The dr code will change to something like "18h" and the darn beeping will STOP. Wait a few seconds. Plug it back in. You'll hear another sound.

If you have long skinny arms, you might be able to do this by sliding off the top of the washer and reaching in.

This won't fix all problems of course, but it's a cheap and easy thing to try before replacing parts.