MQTT platform: mapping values are not allowed here

Hello,
I have some topics which I would like to read from my mosquitto server. Looking at the mosquitto log I can see:

1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.V', ... (6 bytes))
1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.A', ... (4 bytes))
1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.W', ... (3 bytes))
1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.Wh', ... (4 bytes))
1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.KWh', ... (3 bytes))
1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.PF', ... (4 bytes))
1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.Temp', ... (2 bytes))
1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.OUT', ... (1 bytes))
1557567396: Received PUBLISH from 1694498882 (d0, q0, r1, m0, '1694xxxxx2.JSON', ... (77 bytes))

So I wrote a piece of configuration in my conf subfile: /config/sensors/smart-mac.yaml:

- platform: mqtt
   state_topic: '1694xxxxx2.V'
   name: 'Tensione'
   unit_of_measurement: 'V'
- platform: mqtt
   state_topic: '1694xxxxx2.A'
   name: 'Corrente'
   unit_of_measurement: 'A'
- platform: mqtt
   state_topic: '1694xxxxx2.W'
   name: 'Potenza'
   unit_of_measurement: 'W'
- platform: mqtt
   state_topic: '1694xxxxx2.PF'
   name: 'Sfasamento'

Unfortunately when I check the configuration inside Homeassistant I got the error:

Error loading /config/configuration.yaml: mapping values are not allowed here in “/config/sensors/smart-mac.yaml”, line 2, column 15

What is wrong?

Thanks

spacing issue

should be

- platform: mqtt
  state_topic: '1694xxxxx2.V'
  name: 'Tensione'
  unit_of_measurement: 'V'

You are right, wrong indent or space issue :sweat_smile:

Thank You for your support

similar problem but indenting seem fine to me:

sensor:
  – platform: mqtt
    name: "shellyem_d3b312_channel_1_reactive_power"
    state_topic: "shellies/shellyEM-D3B312/emeter/0/reactive_power"
    unit_of_measurement: "VAR"
    icon: mdi:speedometer

any idea?