unknown component in mini cooler
My guess is that the device is a thermal limit switch. The device opens the circuit up once a temperature level has been reached. The main purpose of it is to ensure safety and prevent a possible fire. 
The photo below is a thermal limit switch commonly found in your furnace