Well it probably has a thermocouple that will not let the gas heater part turn on until it gets hot enough from the pilot light. That is usually what goes wrong on them, easy to change. That is to stop the heater from turning on when the pilot light is not lit.