diff --git a/CHANGELOG.md b/CHANGELOG.md index eefd3d56..695c63ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [4.4.11] - 2022-06-08 ### Added - Added tempStepSize to configuration (defaulting to 1) to allow AC units with 0.5 steps (Thanks @nasudon) #570 ### Fixed diff --git a/accessories/fan.js b/accessories/fan.js index e4e76ad3..b776af8a 100644 --- a/accessories/fan.js +++ b/accessories/fan.js @@ -92,7 +92,7 @@ class FanAccessory extends SwitchAccessory { async setSwitchState(hexData, previousValue) { const { config, state, serviceManager } = this; - if (!this.state.switchState) { + if (!state.switchState) { this.lastFanSpeed = undefined; } @@ -101,7 +101,7 @@ class FanAccessory extends SwitchAccessory { } // Reset the fan speed back to the default speed when turned off - if (this.state.switchState === false && config.alwaysResetToDefaults) { + if (!state.switchState && config.alwaysResetToDefaults) { this.setDefaults(); serviceManager.setCharacteristic(Characteristic.RotationSpeed, state.fanSpeed); } diff --git a/package-lock.json b/package-lock.json index 2964a3aa..c9cf65f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "homebridge-broadlink-rm-pro", - "version": "4.4.12-beta.7", + "version": "4.4.13-beta.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 3a81eb42..aeb48732 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "homebridge-broadlink-rm-pro", "displayName": "Homebridge Broadlink RM Pro", - "version": "4.4.12-beta.7", + "version": "4.4.13-beta.0", "description": "Broadlink RM plugin (including the mini and pro) for homebridge with AC Pro and TV features", "license": "ISC", "scripts": { @@ -29,7 +29,7 @@ "url": "git@github.com:kiwi-cam/homebridge-broadlink-rm.git" }, "dependencies": { - "kiwicam-broadlinkjs-rm": "^0.9.18-beta.0", + "kiwicam-broadlinkjs-rm": "^0.9.18", "chai": "^4.3.7", "find-key": "^2.1.3", "github-version-checker": "^2.3.0",