UNPKG

matterbridge-roborock-vacuum-plugin

Version:
11 lines 437 B
import { CleanModeDisplayLabel } from '../core/cleanModeConfig/index.js'; export class GoVacationHandler { canHandle(_mode, activity) { return activity === CleanModeDisplayLabel.GoVacation; } async handle(duid, _mode, _activity, context) { context.logger.notice(`${context.behaviorName}-GoHome`); await context.roborockService.stopAndGoHome(duid); } } //# sourceMappingURL=goVacationHandler.js.map