From 6269de565652c29dd183c6d1dd527931c746a89b Mon Sep 17 00:00:00 2001 From: mouth4war <30283635+mouth4war@users.noreply.github.com> Date: Tue, 17 Dec 2019 17:58:49 +0530 Subject: [PATCH] Update air-purifier-3.js --- lib/devices/air-purifier-3.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/devices/air-purifier-3.js b/lib/devices/air-purifier-3.js index 964fd36..db3df10 100644 --- a/lib/devices/air-purifier-3.js +++ b/lib/devices/air-purifier-3.js @@ -184,7 +184,7 @@ module.exports = class extends AirPurifier.with( } ); - // Favorite Level + // Favorite Fan Level this.defineProperty( { did: `${id}`, siid: 10, piid: 10 }, { @@ -275,12 +275,12 @@ module.exports = class extends AirPurifier.with( const { id } = this.handle.api; let value = parseInt(speed); - if (value < 390) { - value = 390; + if (value < 300) { + value = 300; } - if (value > 2150) { - value = 2150; + if (value > 2300) { + value = 2300 } return this.call('set_properties', [ @@ -330,7 +330,7 @@ module.exports = class extends AirPurifier.with( ]).then(() => null); } - changeFavorite(level) { + changeFavoriteLevel(level) { const { id } = this.handle.api; let value = parseInt(level);