Switch: very strange entity

I have already tried 20 times to create a switch in config.yaml.

I never find the switch entity??

my code:

wake_on_lan:

switch:

  • platform: wake_on_lan
    name: minipc_it8
    mac: 38:F7:CD:C3:02:6D
    host: 192.168.0.244

never find ‘minipc-it8’ switch

Did you restart Home Assistant after adding the switch configuration?

yes of course …

Nothing in here that could help? Wake on LAN - Home Assistant
Also, post your code properly: How to help us help you - or How to ask a good question11 Format it properly