We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ca278 commit 098d2b9Copy full SHA for 098d2b9
lib/eWeLink.js
@@ -101,7 +101,12 @@ class eWeLink {
101
}
102
//*** Synchronise (add/refresh) devices between eWeLink and Homebridge ***\\
103
this.devicesInEwe.forEach(device => {
104
- this.initialiseDevice(device);
+ if (device.hasOwnProperty("extra") && device.extra.hasOwnProperty("uiid")) {
105
+ this.initialiseDevice(device);
106
+ } else {
107
+ let deviceName = device.hasOwnProperty("name") ? device.name : "Unknown Device";
108
+ this.log.warn("[%s] could not be synchronised due to missing uiid parameter.", deviceName);
109
+ }
110
});
111
//*** Set up the ws listener for future external device updates ***\\
112
this.wsClient.receiveUpdate(device => {
0 commit comments