broadlink/__init__.py (ERROR)

hello, i’m a new guy in home assistant, i have trying to integrat broadlink devices in my account with no sucess.
I have the fowling error:

Failed to connect to device
components/broadlink/init.py (ERROR)

my config’s en config.yaml file are:

switch:
  - platform: broadlink
    host: 192.168.1.xxx
    mac: '24:FF:AA:FF:EE:CC'(imaginary mac)

when i call broadlink.learn give me the error that i post, can anyone help me with this?
thk in advance for your time…

There is one more configuration entry you have to add: type: