mirror of https://github.com/Hypfer/Valetudo.git
15 lines
550 B
JavaScript
15 lines
550 B
JavaScript
const BasicControlCapability = require("../../core/capabilities/BasicControlCapability");
|
|
const ValetudoTimerAction = require("./ValetudoTimerAction");
|
|
|
|
class ValetudoFullCleanupTimerAction extends ValetudoTimerAction {
|
|
async run() {
|
|
if (!this.robot.hasCapability(BasicControlCapability.TYPE)) {
|
|
throw new Error("Robot is missing the BasicControlCapability");
|
|
} else {
|
|
return this.robot.capabilities[BasicControlCapability.TYPE].start();
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = ValetudoFullCleanupTimerAction;
|