Skip to content

Commit

Permalink
fix(vendor.dreame): Ignore error 68
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Oct 16, 2021
1 parent d9d2a64 commit dd44320
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions backend/lib/robots/dreame/DreameGen2ValetudoRobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,10 +880,15 @@ class DreameGen2ValetudoRobot extends DreameValetudoRobot {
statusValue = stateAttrs.StatusStateAttribute.VALUE.DOCKED;
}
} else {
statusValue = stateAttrs.StatusStateAttribute.VALUE.ERROR;
if (this.errorCode === "68") { //Docked with mop still attached. For some reason, dreame decided to have this as an error
statusValue = stateAttrs.StatusStateAttribute.VALUE.DOCKED;
} else {
statusValue = stateAttrs.StatusStateAttribute.VALUE.ERROR;

statusMetaData.error_code = this.errorCode;
statusMetaData.error_description = DreameValetudoRobot.GET_ERROR_CODE_DESCRIPTION(this.errorCode);
}

statusMetaData.error_code = this.errorCode;
statusMetaData.error_description = DreameValetudoRobot.GET_ERROR_CODE_DESCRIPTION(this.errorCode);
}

newState = new stateAttrs.StatusStateAttribute({
Expand Down

0 comments on commit dd44320

Please sign in to comment.