Skip to content

Commit

Permalink
set this.on
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalusan committed Sep 5, 2024
1 parent 529978d commit 7ac93d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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.6",
"version": "0.0.7",
"description": "Homebridge Plugin for Eufy Robovac",
"author": "George Talusan <[email protected]>",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion src/cleanRoomsAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ export class CleanRoomsPlatformAccessory {
const on: boolean = value as boolean;
if (on) {
const rooms = this.accessory.context.rooms;
console.log('about to clean', rooms);
await this.platform.robovac.cleanRooms(rooms);
} else {
await this.platform.robovac.pause();
await sleep(3000);
await this.platform.robovac.goHome(true);
}
this.on = on;
} catch (error: unknown) {
this.platform.log.error(error as string);
}
Expand Down

0 comments on commit 7ac93d1

Please sign in to comment.