In a rotary electric device for a power working machine capable of being braked by a brake mechanism, a cover having a bottomed cylindrical shape and covering a yoke of the device, includes: a cover cylindrical portion concentrically surrounding an outer peripheral surface of a cylindrical portion of the yoke with an annular clearance therebetween, and having an outer peripheral surface with which a brake shoe is capable of being placed in pressure contact and a cover bottom wall portion continuous to one end of the cover cylindrical portion, and connected to a bottom wall portion of the yoke. A ventilation clearance communicating with the annular clearance is formed between the bottom wall portion and the cover bottom wall portion. Vent holes communicating the ventilation clearance with an outside of the yoke are provided through the bottom wall portion and the cover bottom wall portion.