Of course, when dealing with electronics connected directly to mains, one should understand that is not enough to just barely handle the nominal mains voltage.
Typically 1500 V peaks should be sustainable.
For equipment connected higher in the distribution chain, such as energy meters, need to sustain 2500 Vpeak or even more.