Skip to content

Commit

Permalink
fix: washer door lock status on some new washer
Browse files Browse the repository at this point in the history
  • Loading branch information
nVuln committed May 24, 2024
1 parent 1c15094 commit b9afead
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/devices/WasherDryer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ export class WasherDryerStatus {
}

public get isDoorLocked() {
return this.data.doorLock === this.deviceModel.lookupMonitorName('doorLock', '@CP_ON_EN_W');
const current = this.deviceModel.lookupMonitorName('doorLock', '@CP_ON_EN_W');
if (current === null) {
return this.data.doorLock === 'DOORLOCK_ON';
}

return this.data.doorLock === current;
}

public get remainDuration() {
Expand Down

0 comments on commit b9afead

Please sign in to comment.