Gate Sensor issue
<!-- PLEASE READ BEFORE POSTING A NEW ISSUE
   → Please use this template as well as you can.
   → Things that may seem unimportant are often helpful in finding the cause of the issue.
-->

### What issue do you have? Please be as thorough and explicit as possible.

Gate Sensor isn't working as well at HomeKit (always closed; see logs below). In eWeLink app it works fine. 
Gate works, but not as expected.
Config not changed in HomeBridge. 
Maybe important: 
iOS 16.0 beta
tvOS 16.0 beta

### Details of your setup.
* Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS? 

(1) HomeBridge UI-X

* Which version of Homebridge/HOOBS do you have?

v1.5.0 (latest)

* Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.

Raspberry Pi 
NodeJS v16.16.0
npm v8.11.0

* Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version?

v10.0.0 (latest)
No (but it didn't cause any problems before)

* Which eWeLink devices do you have that are causing issues? Please include product models if applicable.

Gate: Sonoff Mini (v1)
Gate sensor: Sonoff Mini (v1)

### Please paste any relevant logs below.
<!-- ABOUT LOGS
   → More logging can enabled with 'Debug Logging' in the plugin settings.
   → If you are posting an error then it is helpful for me to also see
     the previous few lines as this can show the cause of the error.
   → Please enter the logs between the two ``` lines below so that the
     logs are formatted in a way which is easier to read.
-->

```

[eWeLink] Config entry [bridgesensors] has an invalid entry which will be ignored.

[eWeLink] [Gate Sensor] could not be initialised as Cannot read properties of undefined (reading '0') at default.initialiseDevice (file:///usr/lib/node_modules/homebridge-ewelink/lib/platform. js:790:58).

```