A method for adjusting a motorised driving device of a swing gate, the swing gate comprising at least one screen, the motorised driving device comprising at least: - an electromechanical actuator, and - an electronic control unit, the electromechanical actuator comprising at least: - an electric motor, - a motion transmission system, - a casing, the casing comprising a first part, the first part forming a first housing inside which the electric motor is arranged, and a second part, the second part forming a second housing inside which the motion transmission system is arranged, the first and second parts (18, 19) of the casing being joined together, - a cover, the cover being assembled on the casing and covering at least one face of the second part of the casing, and - a first end-of-travel position sensor, the first sensor being arranged between the second part of the casing and the cover, characterised in that: - the electromechanical actuator further comprises at least one magnet, the magnet being attached with a movable element of the motion transmission system, - the first sensor is a magnetic detection sensor, the first sensor being configured to cooperate with the magnet, and in that the method comprises at least the following steps: - removing the cover with respect to the second part of the casing, - displacing the screen to a first end-of-travel position, - displacing the first sensor with respect to the second part of the casing in the direction of the magnet, - indicating the positioning of the first sensor opposite the magnet, - holding the first sensor in position with respect to the second part of the casing, - assembling the cover with respect to the second part of the casing, - following the step of assembling the cover with respect to the second part of the casing, a step of engaging the electric motor with respect to the transmission system, and - following the engaging step, a self-learning step implemented by the electronic control unit of the motorised driving device. the motorised driving device comprising at least: - an electromechanical actuator, and - an electronic control unit, - an electromechanical actuator, and - an electronic control unit, the electromechanical actuator comprising at least: - an electric motor, - a motion transmission system, - a casing, the casing comprising a first part, the first part forming a first housing inside which the electric motor is arranged, and a second part, the second part forming a second housing inside which the motion transmission system is arranged, the first and second parts (18, 19) of the casing being joined together, - a cover, the cover being assembled on the casing and covering at least one face of the second part of the casing, and - a first end-of-travel position sensor, the first sensor being arranged between the second part of the casing and the cover, - an electric motor, - a motion transmission system, - a casing, the casing comprising a first part, the first part forming a first housing inside which the electric motor is arranged, and a second part, the second part forming a second housing inside which the motion transmission system is arranged, the first and second parts (18, 19) of the casing being joined together, - a cover, the cover being assembled on the casing and covering at least one face of the second part of the casing, and - a first end-of-travel position sensor, the first sensor being arranged between the second part of the casing and the cover, characterised in that: - the electromechanical actuator further comprises at least one magnet, the magnet being attached with a movable element of the motion transmission system, - the first sensor is a magnetic detection sensor, the first sensor being configured to cooperate with the magnet, - the electromechanical actuator further comprises at least one magnet, the magnet being attached with a movable element of the motion transmission system, - the first sensor is a magnetic detection sensor, the first sensor being configured to cooperate with the magnet, and in that the method comprises at least the following steps: - removing the cover with respect to the second part of the casing, - displacing the screen to a first end-of-travel position, - displacing the first sensor with respect to the second part of the casing in the direction of the magnet, - indicating the positioning of the first sensor opposite the magnet, - holding the first sensor in position with respect to the second part of the casing, - assembling the cover with respect to the second part of the casing, - following the step of assembling the cover with respect to the second part of the casing, a step of engaging the electric motor with respect to the transmission system, and - following the engaging step, a self-learning step implemented by the electronic control unit of the motorised driving device. - removing the cover with respect to the second part of the casing, - displacing the screen to a first end-of-travel position, - displacing the first sensor with respect to the second part of the casing in the direction of the magnet, - indicating the positioning of the first sensor opposite the magnet, - holding the first sensor in position with respect to the second part of the casing, - assembling the cover with respect to the second part of the casing, - following the step of assembling the cover with respect to the second part of the casing, a step of engaging the electric motor with respect to the transmission system, and - following the engaging step, a self-learning step implemented by the electronic control unit of the motorised driving device.