Essentially there are 2 wires in the sensor. When the brakes are worn the sensor rubs on the rotor, breaking the connection between the wires.
To bypass the sensor, thus disabling the warning light, simply expose the wire (most people cut off the top of the sensor and strip the plastic housing off the wire) and connect the wires, closing the circuit.
The light will go off.