Bug: API request type error
### Describe The Bug

API request type error: Cannot read properties of undefined (reading 'deviceList')

### To Reproduce

During plugin startup

### Expected behavior

Steps needed to clear error message

### Relevant log output

```shell
10/26/2022, 1:48:54 PM switchbotbridge2 stopping
10/26/2022, 1:48:59 PM Switchbot Bridge starting
10/26/2022, 1:49:19 PM Switchbot Bridge Loaded plugin '@switchbot/homebridge-switchbot'
10/26/2022, 1:49:19 PM Switchbot Bridge Loading 1 platforms...
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot WARNING [DEBUG] Using Config Logging: debug
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot [DEBUG] Finished initializing platform:
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot Platform Config: {"logging":"debug"}
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot WARNING [DEBUG] Using Default Refresh Rate (2 minutes).
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot WARNING [DEBUG] Using Default Push Rate.
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot [DEBUG] Config OK
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot [DEBUG] Loading accessory from cache: Bedroom Curtain
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot [DEBUG] Executed didFinishLaunching callback
10/26/2022, 1:49:19 PM Switchbot Bridge SwitchBot [DEBUG] sing: rq8A5A0Qjl+10SbEY4m5LGaxIAY2fbSd7XlkLAZifSw=
10/26/2022, 1:49:20 PM Switchbot Bridge Bridge is running on port 51886.
10/26/2022, 1:49:20 PM Switchbot Bridge SwitchBot [DEBUG] statusCode: 401
10/26/2022, 1:49:20 PM Switchbot Bridge SwitchBot [DEBUG] headers: {"date":"Wed, 26 Oct 2022 18:49:20 GMT","content-type":"application/json","content-length":"26","connection":"close","x-amzn-requestid":"67a69181-cb8f-4dec-ab13-1d9a40c8d1d5","x-amzn-errortype":"UnauthorizedException","x-amz-apigw-id":"aoEflEBEIAMFytg="}
10/26/2022, 1:49:20 PM Switchbot Bridge SwitchBot [DEBUG] d: {"message":"Unauthorized"}
10/26/2022, 1:49:20 PM Switchbot Bridge SwitchBot [DEBUG] devicesAPI: [Undefined]
10/26/2022, 1:49:20 PM Switchbot Bridge SwitchBot ERROR API Request: TypeError: Cannot read properties of undefined (reading 'deviceList'), Submit Bugs Here: https://tinyurl.com/SwitchBotBug
```


### Config for homebridge-switchbot

```shell
not known
```


### Screenshots

_No response_

### Device & Model

HOOBS recent update

### Node.js Version

unknown

### NPM Version

unknown

### Homebridge Version

HOOBS 4.2.8

### Homebridge Switchbot Plugin Version

2.2.2

### Homebridge Config UI X Plugin Version

_No response_

### Operating System

HOOBS