There are, like all mercedes, TWO bonnet locks and both have a switch inside. One is 'normally open' and the other 'normally closed'. From the front, the right hand side one is OPEN when the bonnet is shut and the left hand side is CLOSED when the bonnet is shut.
So, buy new switches from Alibaba but don't buy new catches since they are OK. To change the switches, unbolt the catch, pull it out a bit, unclip the old switch and remove and clip in the new one.
In the interim and if you can't get switches, UNPLUG the right hand side to fool it the bonnet is shut and short out the left hand side to fool it the bonnet is shut.
Some people say you can bend the springs inside the switches but it never works for long so it is not worth the trouble.
Problem solved