Patent ID: 7857362

Claim:
A lock for an opening panel, comprising: a locking bolt that is able to rotate between an unlock position, an intermediate position, and an unlock position, wherein the locking bolt comprises: a first locking notch and a second locking notch, a striker able to engage in said locking bolt in order to hold the opening panel closed, a retaining pawl having tooth collaborating with the first and second locking notches of the locking bolt in order to engage with the first or the second locking notch to maintain the lock in the intermediate position or the lock position, respectively, a switch configured to indicate a first state corresponding to the lock being in the “unclosed” state and a second state corresponding to the lock being in the “closed” state, wherein the switch is operated by an operating lever configured to move between a rest position, in contact with the switch to place it in its first state, and an extreme position, not in contact with the switch to place it in its second state, comprising: a mechanical means collaborating, upon closure, with the operating lever and the retaining pawl of the lock so that the switch indicates the second state, only when the tooth of the retaining pawl is collaborating with the second locking notch of the locking bolt, wherein the mechanical means comprises a holding pawl for retaining the operating lever in position, wherein a lug of the retaining pawl comes into contact with the holding pawl to force the latter to release the operating lever, wherein holding said operating lever in position by the holding pawl prevents the switch from changing from the first state to the second state, wherein when the lock is being opened, the locking bolt returns the operating lever from its extreme position to its rest position.