Like this:
mqtt:
switch:
- name: etc...
Not:
mqtt:
- switch:
- name: etc...
Please don’t post pictures of text, in future use the </>
button on the post toolbar (sometimes found under the cog menu) or do this: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16