Magura operates with a reed switch, Tektro/TRP with a pressure switch. There are replacement switches available with different cable outlets. These sets do not come with the spring, nut and counter bolt.
Has this bike ever had these brake sensors in the "levers"?
If not, 2 Replacement lever...