Not really garage related, forgive me. I'm installing a "room to room" transfer fan to send air from a closet to the next room. The closet houses a small server rack, which is proving to run slightly warmer than planned, hence the fan.
There's a dedicated 20 amp circuit to a single outlet in the closet, with 12 gauge wire back to the panel. There's a ton of overhead on this circuit, so my plan is to put a junction box in the attic and use it to power the fan, which is fairly low powered. I also have a 3 speed switch (sold with the fan) that'll go into a single gang box elsewhere on the wall.
Here's what the supplied wiring diagram looks like:

This mostly makes sense, it essentially uses the fan unit as a sort of junction box. This is all behind a 20 amp breaker, so I'd use 12 gauge NM from my junction box in the attic to the fan unit. My confusion is over the wiring from the fan to the switch. The switch has flying leads that are 18 gauge stranded wire. Should I still be using 12 gauge between the fan and switch, or something else? It's all simple enough, I just want to make sure I'm using the right wire, and the 18 gauge leads threw me for a bit of a loop, as I was planning on just getting 12/4 NM for the connections.
There's a dedicated 20 amp circuit to a single outlet in the closet, with 12 gauge wire back to the panel. There's a ton of overhead on this circuit, so my plan is to put a junction box in the attic and use it to power the fan, which is fairly low powered. I also have a 3 speed switch (sold with the fan) that'll go into a single gang box elsewhere on the wall.
Here's what the supplied wiring diagram looks like:

This mostly makes sense, it essentially uses the fan unit as a sort of junction box. This is all behind a 20 amp breaker, so I'd use 12 gauge NM from my junction box in the attic to the fan unit. My confusion is over the wiring from the fan to the switch. The switch has flying leads that are 18 gauge stranded wire. Should I still be using 12 gauge between the fan and switch, or something else? It's all simple enough, I just want to make sure I'm using the right wire, and the 18 gauge leads threw me for a bit of a loop, as I was planning on just getting 12/4 NM for the connections.