Hi...as far as using a diode, it saves you the trouble of buying a more expensive DPDT switch. You can use common diodes with a rating that will match the current load. 5 amp rated would be more than enough. Cover the diode and exposed wires with electrical sleeving.
printed board assembly