O-ring thermostat