mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
overseer v2 3
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
id: 'neato_clear_errors',
|
||||
signature: 'neato_clear_errors()',
|
||||
availability(ctx = {}) {
|
||||
const mode = String(ctx.mode || '');
|
||||
@@ -8,4 +9,8 @@ module.exports = {
|
||||
if (!ctx.neatoState?.connected) return { available: false, reason: 'unavailable' };
|
||||
return { available: true, reason: null };
|
||||
},
|
||||
async execute({ neatoService }) {
|
||||
await neatoService.clearErrors();
|
||||
return { ok: true };
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user