Then it probably has a replaceable thermocouple. In any case if it’s an overheat issue that has to be addressed be fore you put it back into service. If you can disconnect it from AC power supply you could use a battery and test light to check switch