You don't show a full picture, but it looks like 2 wires to the switch and 2 loop wires.
That being correct, the middle 2 connections of the switch go to the motor as per the diagram, green/yellow, and green.
The two black wires from the switch got to the brown and black of the motor.
If the motor runs the wrong way according to the switch, turn the switch around in the panel.
Make sure you don't change direction while the motor is running.
Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.