Thermal overload protection for electronics/motor