It has a mechanical snap switch. If you can pull the cover off and clean the contacts on the lever or any type of contacts you can see. Either contact cleaner or 90% alcohol and also look for any moving parts that may have broken or look to be in the wrong position. That tstat should work forever.

Glad to hear it's working ... can't do anything about the cooking! That's up to you and the thermostat.