[BUG] Netboxing fails with error regarding DeviceType

The script add_aruba_ap fails when trying to add the AP to netbox

python -m arubawlan-python-scripts.add_aruba_ap -u enderium --mac 000b86ee7490 --name "aruba-ap-c51" --mmwhitelist --mmpass "weiYujahhahx1eew" --mmproxy socks5h://localhost:8000 --mmgroup fem-ap-group --nbapikey cfcaff5487c520479b5a2125df25721343f47bd8 --serialnumber DN0020230 --model ap-205H --wikiuser enderium --wikipassword "6VCxTmpn9tz*73Gm" --location "Haus C, Zi. 01-00-15" -p "cY7mCytxoxmi" --mmuser fem --skipwiki --skipadmindb
[1/1] registering aruba-ap-c51 / 00:0b:86:ee:74:90
Failed to process AP aruba-ap-c51!
Traceback (most recent call last):
  File "/home/timo/Dokumente/Dokumente/FeM/Technik/venv/lib/python3.12/site-packages/arubawlan-python-scripts/add_aruba_ap.py", line 607, in process_aps
    add_ap_to_netbox(nb_credentials, ap, not args.pretend)
  File "/home/timo/Dokumente/Dokumente/FeM/Technik/venv/lib/python3.12/site-packages/arubawlan-python-scripts/add_aruba_ap.py", line 351, in add_ap_to_netbox
    raise Exception(error_msg)
Exception: Netboxing AP failed
An exception occurred: `DoesNotExist: DeviceType matching query does not exist.`
\`\`\`
Traceback (most recent call last):
  File "/var/pythonweb/netbox/pythonweb/netbox/scripts/aruba.py", line 121, in get_device_type
    return DeviceType.objects.get(slug=data['ap_type'].slug)
                                       ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'slug'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/pythonweb/netbox/pythonweb/netbox/extras/scripts.py", line 464, in _run_script
    script.output = script.run(data=data, commit=commit)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/pythonweb/netbox/pythonweb/netbox/scripts/aruba.py", line 67, in run
    device_type = self.get_device_type(data)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/pythonweb/netbox/pythonweb/netbox/scripts/aruba.py", line 123, in get_device_type
    return DeviceType.objects.get(slug=data['ap_type']['slug'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/pythonweb/venvs/netbox/venv/lib/python3.11/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/pythonweb/venvs/netbox/venv/lib/python3.11/site-packages/django/db/models/query.py", line 650, in get
    raise self.model.DoesNotExist(
dcim.models.devices.DeviceType.DoesNotExist: DeviceType matching query does not exist.

\`\`\`
Database changes have been reverted due to error.
Netboxing AP failed
An exception occurred: `DoesNotExist: DeviceType matching query does not exist.`
\`\`\`
Traceback (most recent call last):
  File "/var/pythonweb/netbox/pythonweb/netbox/scripts/aruba.py", line 121, in get_device_type
    return DeviceType.objects.get(slug=data['ap_type'].slug)
                                       ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'slug'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/pythonweb/netbox/pythonweb/netbox/extras/scripts.py", line 464, in _run_script
    script.output = script.run(data=data, commit=commit)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/pythonweb/netbox/pythonweb/netbox/scripts/aruba.py", line 67, in run
    device_type = self.get_device_type(data)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/pythonweb/netbox/pythonweb/netbox/scripts/aruba.py", line 123, in get_device_type
    return DeviceType.objects.get(slug=data['ap_type']['slug'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/pythonweb/venvs/netbox/venv/lib/python3.11/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/pythonweb/venvs/netbox/venv/lib/python3.11/site-packages/django/db/models/query.py", line 650, in get
    raise self.model.DoesNotExist(
dcim.models.devices.DeviceType.DoesNotExist: DeviceType matching query does not exist.

\`\`\`
Database changes have been reverted due to error.
The following APs couldn't be fully registered due to previous errors:
  * aruba-ap-c51
Edited by Timo Kettenbach