Problem - Duplicated Mapping Key Platform

Please Helpme.

Error /config/configuration.yaml:

duplicated mapping key at line 83, column 7:
platform: dlink
^

(xxxxxx = mypassword switch)

/config/configuration.yaml:
image

Thx!

Should be:

switch:
  - platform: dlink
    name: Luci Salone
    host: 192.168.1.8
    username: admin
    password: xxxxxx

  - platform: dlink
    name: Luci Ingresso
    host: 192.168.1.7
    username: admin
    password: xxxxxx

  - platform: dlink
    ...

Error:

bad indentation of a mapping entry at line 77, column 9:
name: Luci Salone
^

D-link Switch

switch:

  • platform: dlink
    name: Luci Salone
    host: 192.168.1.8
    username: admin
    password: xxxxx

  • platform: dlink
    name: Luci Ingresso
    host: 192.168.1.7
    username: admin
    password: xxxxx

  • platform: dlink
    name: Luci Cucina
    host: 192.168.1.9
    username: admin
    password: xxxxx

  • platform: dlink
    name: Luci Camera
    host: 192.168.1.5
    username: admin
    password: xxxxx