Thermostat and O-ring