Skip to content

Commit

Permalink
keep switch off if going home
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalusan committed Sep 2, 2024
1 parent aca5aae commit 4561fec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@george.talusan/homebridge-eufy-robovac",
"displayName": "Homebridge Plugin for Eufy Robovac",
"type": "module",
"version": "0.0.4",
"version": "0.0.5",
"description": "Homebridge Plugin for Eufy Robovac",
"author": "George Talusan <[email protected]>",
"license": "ISC",
Expand Down Expand Up @@ -45,6 +45,6 @@
"typescript-eslint": "^8.0.1"
},
"dependencies": {
"@george.talusan/eufy-robovac-js": "^0.0.5"
"@george.talusan/eufy-robovac-js": "^0.0.6"
}
}
3 changes: 3 additions & 0 deletions src/defaultAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ export class DefaultPlatformAccessory {
return false;
}
try {
if (this.platform.robovac.goingHome()) {
return false;
}
return !this.platform.robovac.docked();
} catch (error: unknown) {
this.platform.log.error(error as string);
Expand Down

0 comments on commit 4561fec

Please sign in to comment.