Skip to content

Commit

Permalink
skip Sonoff Bridge as it is not supported by this plugin, fixes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
howanghk committed Oct 22, 2019
1 parent 1963a11 commit 69875f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ function eWeLink(log, config, api) {

body.forEach((device) => {
platform.apiKey = device.apikey;
platform.devicesFromApi.set(device.deviceid, device);
// Skip Sonoff Bridge as it is not supported by this plugin
if (['RF_BRIDGE'].indexOf(platform.getDeviceTypeByUiid(device.uiid)) == -1) {
platform.devicesFromApi.set(device.deviceid, device);
}
});

// Now we compare the cached devices against the web list
Expand Down

0 comments on commit 69875f4

Please sign in to comment.