The topological ferromagnet CoS2 exhibits an anhysteretic, weakly first-order transition at the Curie temperature of 119.8 K with a tricritical point µ0Htcp at 0.034 T. Magnetic symmetry and the mixing of majority and minority spin eg bands at a subband crossing just above the Fermi level produce a topological component of the magnetization that leads to a negative M3 term in the Landau free energy. The position of the Fermi level relative to the subband crossing is critical for controlling the order of the transition. Hole doping in Co0.89Fe0.11S2 drains the minority-spin eg pocket and results in a normal second-order phase transition. Electron doping in Co0.94Ni0.06S2 raises the Fermi level toward the subband gap, producing a strongly first-order transition with 15 K hysteresis. Our results demonstrate a relation between topological electronic structure and thermal hysteresis at the Curie point, which may help in the search for magnetocaloric materials.