Skip to content

Commit

Permalink
Fix bug in app_goto_target parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
copystring committed Sep 13, 2024
1 parent 0c072d6 commit 8b4f68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ class Roborock extends utils.Adapter {
const params = JSON.parse(state.val);

const isCorrectLength =
(command === "app_zoned_clean" && (params.length === 4 || params.length === 5)) || (command === "app_goto_target" && params.length === 4);
(command === "app_zoned_clean" && (params.length === 4 || params.length === 5)) || (command === "app_goto_target" && params.length === 2);

const areAllNumbers = params.every((item) => typeof item === "number");

Expand Down

0 comments on commit 8b4f68d

Please sign in to comment.