Bug: 
### Describe The Bug

Unable control the switch bot curtain 

### To Reproduce

n

### Expected behavior

n

### Relevant log output

```shell
10/21/2022, 6:02:04 PMSwitchbot BridgeLoaded plugin '@switchbot/homebridge-switchbot'
10/21/2022, 6:02:04 PMSwitchbot BridgeLoading 1 platforms...
10/21/2022, 6:02:04 PMSwitchbot BridgeBridge is running on port 11111.
10/21/2022, 6:02:04 PMSwitchbot BridgeSwitchBotERRORAPI Request: TypeError: Cannot read properties of undefined (reading 'length'), Submit Bugs Here: https://tinyurl.com/SwitchBotBug
```


### Config for homebridge-switchbot

```shell
{
    "accessories": [],
    "platforms": [
        {
            "platform": "SwitchBot",
            "name": "SwitchBot",
            "credentials": {
                "notice": "Keep your token a secret!",
                "token": "xxxxxxxxxxxxxx",
                "secret": "xxxxxxxxx"
            },
            "options": {
                "debug": "debug"
            }
        }
    ]
}
```


### Screenshots

_No response_

### Device & Model

n

### Node.js Version

n

### NPM Version

n

### Homebridge Version

n

### Homebridge Switchbot Plugin Version

newest 

### Homebridge Config UI X Plugin Version

Hoobs 4.2.8

### Operating System

Mac 