Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve the workaround of #440. #519

Merged
merged 13 commits into from
Jun 16, 2023
10 changes: 0 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ 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).

## [4.4.11] - 2022-06-08
### Added
- w1 and file temperatures will return a battery level of 100 if none found
- Serializes the simultaneous IR/RF commands. (Thanks @banboobee) #520
- +/- controls for light accessory. (Thanks @banboobee) #530
- Sync channel selection when tv is powered on. (Thanks @banboobee) #529
### Fixed
- Fixes log error (Thanks @hypery2k) #606
- Fan speed fixes (Thanks @dnicolson) #592 and #593

## [4.4.12] - 2022-06-08
### Added
- Added tempStepSize to configuration (defaulting to 1) to allow AC units with 0.5 steps (Thanks @nasudon) #570
Expand Down
4 changes: 2 additions & 2 deletions accessories/accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ class BroadlinkRMAccessory extends HomebridgeAccessory {
if (sendCount > 1) {interval = interval || 0.1;}

// Itterate through each hex config in the array
for (let index = 0; index < sendCount; index++) {
for (let index = 0; data && index < sendCount; index++) {
await sendData({ host, hexData: data, log, name, logLevel });

if (interval && index < sendCount - 1) {
// this.intervalTimeoutPromise = delayForDuration(interval);
// await this.intervalTimeoutPromise;
await new Promise(resolve => setTimeout(resolve, interval * 1000));
await new Promise(resolve => setTimeout(resolve, interval * 1000));
}
}
}
Expand Down