"Invalid tag" when creating a new device

"Invalid tag" when creating a new device

@Andrés

Hello,
I am trying to create a device from an external python script. As long as I don’t input any tags the creation of the device works fine. However when trying to create the device with some tags I get as a result:

{‘status’: False, ‘message’: ‘Invalid tag’}

and the device is not created.

This is my code:

new_device = {
“name”: self.id,
“description”: “Dispositivo tipo solar”,
“active”: True,
“visible”: True,
“tags”: [{“CP type”: “Solar”}]
}
result = tago_account.devices.create(new_device)

What is the problem here?
Thanks!