diff --git a/CHANGELOG.md b/CHANGELOG.md index 9905ade..29ea9d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/accessories/accessory.js b/accessories/accessory.js index 9ab2cfa..07f3489 100644 --- a/accessories/accessory.js +++ b/accessories/accessory.js @@ -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)); } } }