Skip to content

Commit

Permalink
Fixes missing calls to getCurrentTemperature/Humidity #722
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwi-cam committed Jul 30, 2024
1 parent 9d132af commit 9ae3e7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added ping state change logging for troubleshooting
### Changed
- Removed use of Characteristic.getValue() in preparation of homebridge 2.0
- Removed use of Characteristic.getValue() in preparation of homebridge 2.0 (#722)
- The removal of getValue() has stopped the regular getCurrentTemperature and getCurrentHumidity calls. Changed the regualar updates to make these calls instead of just using refreshCharacteristic. (#722)

## [4.4.17 - 2024-07-17]
### Added
Expand Down
2 changes: 1 addition & 1 deletion accessories/aircon.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ class AirConAccessory extends BroadlinkRMAccessory {
device.checkTemperature();

this.updateTemperatureUI();
if (!config.isUnitTest) {setInterval(this.updateTemperatureUI.bind(this), config.temperatureUpdateFrequency * 1000)}
if (!config.isUnitTest) {setInterval(()=>{this.getCurrentTemperature(this.updateTemperatureUI.bind(this))}, config.temperatureUpdateFrequency * 1000)}
}

onTemperature (temperature,humidity) {
Expand Down
2 changes: 1 addition & 1 deletion accessories/humidifier-dehumidifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class HumidifierDehumidifierAccessory extends FanAccessory {
device.checkHumidity();

this.updateHumidityUI();
if (!config.isUnitTest && !config.noHumidity) {setInterval(this.updateHumidityUI.bind(this), config.humidityUpdateFrequency * 1000)}
if (!config.isUnitTest && !config.noHumidity) {setInterval(()=>{this.getCurrentHumidity(this.updateHumidityUI.bind(this))}, config.humidityUpdateFrequency * 1000)}
}

onHumidity (temperature,humidity) {
Expand Down

0 comments on commit 9ae3e7b

Please sign in to comment.