Migrating to 2.x causes IR device (air purifier) not to work
### Describe The Bug

Updating to 2x causes IR devices to stop working with error "connection type: undefined"

### To Reproduce

Update existing setup from 1.x to 2.x, put in new token and secret, try to turn IR devices on and off

### Expected behavior

Devices continue to work

### Relevant log output

```shell
[10/14/2022, 4:48:23 PM] [SwitchBot] Initializing SwitchBot platform...
[10/14/2022, 4:48:23 PM] Homebridge v1.5.0 (HAP v0.10.3) (Homebridge 48BA) is running on port 51839.
[10/14/2022, 4:48:24 PM] [SwitchBot] Total SwitchBot Devices Found: 1
[10/14/2022, 4:48:24 PM] [SwitchBot] Total IR Devices Found: 1
[10/14/2022, 4:48:24 PM] [SwitchBot] Total IR Devices Found: 1
[10/14/2022, 4:48:24 PM] [SwitchBot] Restoring existing accessory from cache: Air Conditioner DeviceID: 02-202209132036-11252856
[10/14/2022, 4:48:24 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Firmware Revision': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[10/14/2022, 4:48:24 PM] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Firmware Revision': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[10/14/2022, 4:48:35 PM] [SwitchBot] DIY Air Purifier: Air Conditioner Connection Type: undefined, commands will not be sent to OpenAPI
[10/14/2022, 4:48:41 PM] [SwitchBot] DIY Air Purifier: Air Conditioner Connection Type: undefined, commands will not be sent to OpenAPI
```


### Config for homebridge-switchbot

```shell
{
            "name": "SwitchBot",
            "credentials": {
                "token": "xxxxxxxx",
                "secret": "xxxx",
                "notice": "Keep your Token & Secret a secret!"
            },
            "platform": "SwitchBot"
        }
```


### Screenshots

I updated from 1.15 to 2.1.1 and my IR devices stopped working. My entire setup relies on OpenAPI (no bluetooth connections) which made my previous config really easy -  I just put in the auth token and everything works.

However, after updating to 2.1.1 and putting in both token and secret (I double checked and they are correct) the setup breaks. I shouldn't require any additional configuration to get this to continue working, right?

### Device & Model

Intel NUC

### Node.js Version

v18.10.0

### NPM Version

v8.19.2

### Homebridge Version

v1.5.0

### Homebridge Switchbot Plugin Version

v2.1.1

### Homebridge Config UI X Plugin Version

v4.50.1

### Operating System

Windows 10 Enterprise