Ge hotel unit

The unit got wet during Tropical Storm Fay when rain blew into the unit from outside. Rain got into the controls. The Heater started running with the unit in the off position. The unit can be switched to the ac position and it cools with the heater off. When switched back to the off position the heater comes back on. Is this in the control switch, which I belive or in the thermostat control?
Thanks

Switch needs replacing.