Bug: failed to discover devices. cannot read property 'touppercase' of undefined
### Describe The Bug

All existing Switchbot devices disappeared in HomeKit

### To Reproduce

Install update (v1.0.1)

### Expected behavior

To still have all of my device and working normally

### Relevant log output

```shell
'failed to discover devices. cannot read property 'touppercase' of undefined'
```


### Config for homebridge-switchbot

```shell
{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "secret",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "hide_device": [
                    "02-202109011807-50408529"
                ],
                "humidifier": {
                    "hide_temperature": true
                }
            },
            "platform": "SwitchBot"
        }
```


### Screenshots

_No response_

### Device & Model

Raspberry Pi 4 Model B

### Node.js Version

14.18.1

### NPM Version

8.1.3

### Homebridge Version

1.3.6

### Homebridge Switchbot Plugin Version

1.0.1

### Homebridge Config UI X Plugin Version

4.41.2

### Operating System

Raspbian GNU/Linux Buster (10)