NOVELTY - The device (220) has a shift element (240) that comprises a first shift element terminal (240a) and a second shift element terminal (240b). The first shift element terminal is connected with a second primary component terminal (232b) of a primary electrical component (232). A first primary port (220a) and a second primary port (220b) are provided for attaching device to an electrical energy storage device (212). A first secondary port (220c) and a second secondary port (220d) are provided for attaching device to an electric capacitor (292) provided in electrical machine (290).    USE - Device for pre-charging of electric capacitor and/or power electronics of electrical machine of electric vehicle or hybrid vehicle such as electrical mobile motor car, unicycle and bicycle, used in energy-storage system (claimed).    ADVANTAGE - The need for pre-charging of electric capacitance for galvanic separation between the electrical energy accumulator and leads of electrical machine is avoided, so that error-prone pre-charge and relatively expensive electromechanical component can be omitted. The need for pre-charge resistor in pre-charge circuit can be avoided, so that heat loss is reduced and the size of the pre-charge device is reduced. As expensive electromechanical component is not used in pre-charge device, the manufacturing cost of the energy storage system can be reduced. The switching element can be controlled easily and automatic activation or deactivation of the pre-charging can be achieved by the use of semiconductor device. As the electrical machine is temporarily disconnected from the electric energy storage device after maintenance pre-charging operation, reliable and low-loss coupling energy between the electrical machine and the electric energy storage is ensured.    DETAILED DESCRIPTION - INDEPENDENT CLAIMS are included for the following:    (1) an energy-storage system for electrical machine;    (2) a method for pre-charging capacitor of electrical machine; and    (3) a control device for energy-storage system.    DESCRIPTION OF DRAWING(S) - The drawings show the circuit diagrams of the pre-charge device and electric components of electrical mobile motor car.    Electrical energy storage device (212)    Device for pre-charging capacitor of electrical machine (220)    First primary port (220a)    Second primary port (220b)    First secondary port (220c)    Second secondary port (220d)    Primary electrical component (232)    Second primary component terminal (232b)    Shift element (240)    First shift element terminal (240a)    Second shift element terminal (240b)    Electrical machine (290)    Electric capacitor (292)