Skip to content

Commit

Permalink
don't delete devices on login fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Mick Giles committed Apr 20, 2021
1 parent 51c6a61 commit a017632
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = class EtekCityClient {
//this.log(response);
if (response == null || response.result == null) {
this.log("Connecting to Vesync failed!");
return [];
return null;
} else {
let devices = response.result.list.filter((dev) => {
return !this.exclude.includes(dev.deviceType);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-vesync-v2",
"version": "2.3.6",
"version": "2.3.7",
"description": "A Homebridge plugin for controlling EtekCity smart outlets by issuing commands to the VeSync site. ",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a017632

Please sign in to comment.