<p>The cooking device (O) of the present invention comprises an inner compartment (R); a wall (U) provided in the inner compartment (R); a thermostat (T) in the bar form which measures the temperature of the inner compartment (R) and controls working temperature of the cooking device, and which comprises a cylindrical body (Y); and a connection unit (P) in which the thermostat (T) is placed. The connection unit (P) comprises a body (1); a stopper (2) extending in the form of a projection from the body (1); a holding lug (3) comprising at least one hole (3a) through which the thermostat (T) is able to pass and extending as a projection from the body (1); an upper holder (4); and a lower holder (5).</p>