Oh thanks. The photo shows an older version. On mine, the diode is not placed diagonally, but has its own marked place - parallel to the fan, (marked "+" and "-"). I rang the tester all around, and this is logically a n-p-n transistor. Purpose is unknown. Element with six legs - controls the fan.