Correct Proportioning Valve?

A 2 post brake warning switch... I'm fairly certain that switch was used so the valve could be mounted anywhere including on plastic or other surface not conducive to chassis ground.
OEM wire to either switch terminal. Other terminal will get a jumper wire to chassis ground.