[Bug]: Changing HomeBase 2 security mode crashes homebridge
### What happened?

Changing HomeBase 2 security mode in the newest release crashes homebridge. Previous version does not.

### Device Type

Station (Supported)

### Plugin Version

v2.0.x (Supported)

### HomeBridge Version

v1.4.x (Supported)

### NodeJS Version

v16 (Supported)

### Operating System

Raspbian 10+ (Supported)

### Relevant log output

```shell
N/a
```


### config

```shell
N/a
```
