Skip to content

Commit

Permalink
fix(timers): Fix zoned scheduled cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed May 26, 2021
1 parent c7efd6a commit 34443b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ValetudoZoneCleanupTimerAction extends ValetudoTimerAction {
const zonePreset = this.robot.config.get("zonePresets")[this.zoneId];

if (zonePreset) {
return capability.start(zonePreset);
return capability.start(zonePreset.zones);
} else {
throw new Error("There is no zone preset with id " + this.zoneId);
}
Expand Down

0 comments on commit 34443b3

Please sign in to comment.