resistor/diode in parking break wiring

"In the parking brake circuit" puzzles me. Remnants of a add on trailer brake maybe? I've tied those to the foot operated brake lamp switch but not park/brake warning lamp.