Wake On Lan / Send MagicPacket Component not working

I’m very new to home assistant and I’m trying to wake my computer with a switch through home assistant. I added these few lines of code to my configuration.yaml file and after rebooting home assistant, no switch for the wake on lan shows up. What am I doing wrong?


  - platform: wake_on_lan
    mac_address: "52-14-C3-8B-1D-G2"
    name: Computer