Multiple Switches

I am new to using .yaml files. I have two TP-Link smart plugs that I want to use. Is this correct?

switch:
  - platform: tplink
    host: 192.168.1.456
  - platform: tplink
    host: 192.168.1.123

I have used an example IP address

Thanks

Hi,

Which version of devices do you have?

Depending on which version do you have, maybre are not compatible… Look this link.