It is just a loop (closed circuit) that gets broken when the lining wears down and the sensor rubs the rotor to the point of breaking the wire.
Just keep in mind if you do go ahead and short the system. BMW pads don't usually have squeal tabs to warn against wearing them down the metal.