UNPKG

matterbridge-roborock-vacuum-plugin

Version:
11 lines 432 B
import { RunModeDisplayLabel } from '../core/runModeConfig.js'; export class IdleModeHandler { canHandle(_mode, activity) { return activity === RunModeDisplayLabel.Idle; } async handle(duid, _mode, activity, context) { context.logger.notice(`${context.behaviorName}-ChangeRunMode to:`, activity); await context.roborockService.pauseClean(duid); } } //# sourceMappingURL=idleModeHandler.js.map