Valetudo/backend/lib/robots/viomi/capabilities/ViomiMapResetCapability.js

18 lines
438 B
JavaScript

const MapResetCapability = require("../../../core/capabilities/MapResetCapability");
/**
* @extends MapResetCapability<import("../ViomiValetudoRobot")>
*/
class ViomiMapResetCapability extends MapResetCapability {
/**
* @returns {Promise<void>}
*/
async reset() {
await this.robot.sendCommand("set_resetmap", [], {});
this.robot.clearValetudoMap();
}
}
module.exports = ViomiMapResetCapability;