Error adding IR command: remote.learn_command required key not provided @ data['device']. Got None

Hi , i am trying to add a new remote command to a Broadlink device , i use the Developer console to add the command learning from a ir remote but i have the following error:

remote.learn_command required key not provided @ data['device']. Got None

Could someone point to a solution?