I recently had some electrical work done at my house, and as part of that, the power was shut off. After a few minutes, we noticed water coming from the closet containing the hot water heater and furnace. There was a slow and steady trickle of water coming out of the condensate pump, and we could feel the heat in the discharge line connecting the pump to the t&p valve.
The next day, I talked to two different plumbers about this. One said that line should be going to a drain, but there's no drain in my basement. The other said it was ok for that line to be connected to the pump, but there should be a shut-off valve on the hot water side of the heater.
Who (if any) is right? I'm most interested in what would be considered up to code in Pennsylvania. Since that's a vague question, I'll also ask a specific one: what's the best thing for me to do to ensure the next time I lose power, my basement doesn't slowly flood?
Edit: because a picture is worth a thousand words.