Electrical – Why does the light box have 2 cables for this one switch

electricalneutralswitchwiring

Took down a ceiling fixture and discovered what looks like a possible switch loop, except I don’t understand how the connection gets completed with the current set up. Basically, 2 lines coming into the fixture box. The black from line A is wired to the fixture, and the white from line A is essentially “capped off” (is cut short and contained within the insulated portion of line A). The white from line B is wired to the fixture, and the black from line B is capped off. Over at the single pole switch there is a black wire and white wire attached. This would make sense to me as a switch loop if the 2 capped off wires were joined together, but they’re not. enter image description hereenter image description here

Best Answer

I see that this is a 2-gang switch box, but the picture doesn't include detail of the other switch. It looks like there was once a ceiling fan hung here and the extra wire would be for the fan, controlled by the second switch in the box.