homebridge-lib 6.2.0 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,7 +208,7 @@ class History extends ServiceDelegate {
208
208
  */
209
209
  addEntry (entry) {
210
210
  if (this._h.memorySize > 0) {
211
- if (this._h.lastEntry >= this._h.memorySize) {
211
+ if (this._h.lastEntry - this._h.entryOffset >= this._h.memorySize) {
212
212
  this._h.firstEntry++
213
213
  }
214
214
  this._h.lastEntry++
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Library for homebridge plugins",
4
4
  "author": "Erik Baauw",
5
5
  "license": "Apache-2.0",
6
- "version": "6.2.0",
6
+ "version": "6.2.1",
7
7
  "keywords": [
8
8
  "homekit",
9
9
  "homebridge"