My bathroom fan stopped working so I bought a new one. I wired it in but when the bathroom light switch was turned off the fan came on. "I must be dumb" was my first though so out with the meter and let's check the wiring.
It appears that the light switch feeds the lights (of course) and also...