Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxinminax committed Jan 13, 2021
1 parent 94f2ddf commit 573ad15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devices/deerma.humidifier.mjjsq.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = class extends Device {
}

setTargetHumidity(v) {
if (v >= 40 && v <= 70)) {
if (v >= 40 && v <= 70) {
return this.miioCall('Set_HumiValue', [v]);
}
return Promise.reject(new Error(`Invalid target humidity: ${v}`));
Expand Down

0 comments on commit 573ad15

Please sign in to comment.