Bug: API Request: TypeError: Cannot read properties of undefined (reading 'map'),
### Describe The Bug

API Request: TypeError: Cannot read properties of undefined (reading 'map'),

### To Reproduce

Upon each start of the plug-in

### Expected behavior

..

### Relevant log output

```shell
30/10/2022, 11:24:53Switchbot Bridge starting
30/10/2022, 11:25:04Switchbot BridgeLoaded plugin '@switchbot/homebridge-switchbot'
30/10/2022, 11:25:04Switchbot BridgeLoading 1 platforms...
30/10/2022, 11:25:04Switchbot BridgeBridge is running on port 51846.
30/10/2022, 11:25:05Switchbot BridgeSwitchBotERRORAPI Request: TypeError: Cannot read properties of undefined (reading 'map'), Submit Bugs Here: https://tinyurl.com/SwitchBotBug
```


### Config for homebridge-switchbot

```shell
"platform": "SwitchBot",
    "name": "SwitchBot",
    "credentials": {
        "token": "*********************************",
        "secret": "********************************"
    },
    "options": {
        "devices": [
            {
                "deviceId": "C3E34613XXXX",
                "configDeviceName": "Curtain",
                "configDeviceType": "Curtain",
                "connectionType": "BLE/OpenAPI",
                "curtain": {
                    "setOpenMode": "0",
                    "setCloseMode": "0",
                    "hide_lightsensor": true
                },
                "contact": {
                    "hide_lightsensor": false
                },
                "scanDuration": 10,
                "bot": {
                    "mode": "press"
                }
            },
            {
                "deviceId": "AC67B2D2XXX",
                "configDeviceName": "Humidifier",
                "configDeviceType": "Humidifier",
                "connectionType": "BLE/OpenAPI",
                "bot": {
                    "allowPush": true
                },
                "meter": {
                    "hide_temperature": true,
                    "hide_humidity": false
                },
                "scanDuration": 10
            },
            {
                "deviceId": "E7F6AA2XXXX",
                "configDeviceName": "HubMini",
                "configDeviceType": "Plug Mini (US)",
                "connectionType": "BLE/OpenAPI",
                "scanDuration": 10
            }
        ],
        "pushRate": 5,
        "refreshRate": 31
    }
}
```


### Screenshots

_No response_

### Device & Model

Hoops

### Node.js Version

v16.18.0

### NPM Version

??

### Homebridge Version

v1.5.0

### Homebridge Switchbot Plugin Version

v2.2.2

### Homebridge Config UI X Plugin Version

v4.2.8

### Operating System

Hoobs