Breaking homing switches - Uh, and lot's of other stuff

Is this a typo? I could see how this would work if you unplugged the wall wart powering the Arduino.