Skip to content

Commit

Permalink
todo wtm typeerror
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky-ESA committed May 7, 2024
1 parent 1c41caf commit 727f40e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,7 @@ module.exports = {
val: data.cfg.sc.ots.bc ? true : false,
ack: true,
});
// TODO Cannot read properties of undefined (reading 'wtm') - Why ?????
await this.setStateAsync(`${mower.serial_number}.mower.oneTimeWorkTime`, {
val: data.cfg.sc.ots.wtm == null ? 0 : data.cfg.sc.ots.wtm,
ack: true,
Expand Down

0 comments on commit 727f40e

Please sign in to comment.