RickyBeam wrote:
clinehall wrote:
...Straight wired to the breaker. Can I ...
You
CAN, but there's a reason it's hardwired. Building. Code. A water heater can pull enough current to melt a remotely marginal plug.
As long as the heater only pulls 80% of what the plug is rated for you're fine. I'd be worried about forgetting to plug the hot water heater back in though. No hot water will lead to some unhappy domestic situations. If your water heater is inside the house it's likely plugged since NEMA requires a disconnect to be within sight. The breaker counts if you can see the breaker box from the hot water heater.
If the box is mounted properly with an appropriate plug I don't see why this would be a code violation. Unless there is some esoteric part of the code that requires hot water heaters to be hard wired (with disconnects if they are inside). But, like Vincent said it's easy to run another branch if you have space in your panel.