The problem is described in the screenshot “Bad indentation” (and the correct domain name is switch not switches).
Even if you fix it, you will face another problem because you are using the old, deprecated format for defining MQTT switches. Refer to the examples in the documentation to see the new format.