The comments read like a lot of people don’t quite understand the issue.
The bonnet (hood if you insist) latch may not warn a driver if it isn’t secured correctly. If it is secured correctly then it is fine. So it isn’t going to suddenly open.
If the latch isn’t shut correctly and then the sensor doesn’t report this then the bonnet may open unexpectedly.
If they can use a software update to correct the reporting then that’s it fixed.
There’s no issue with the actual latching mechanism. It’s just the sensor for reporting the latching state.
It may be that it currently works on a two value system. i.e a value for correctly latched and a value for not latched. If that’s the case and isn’t just not providing the second valve correctly then a simple software change to only use the latched value would fix this. As any other value or the absence of a value will report it at unlatched.
Nope it’s the latch switch. So something that is switched when the latch is closed. Not the latch itself.