diff --git a/CHANGELOG.md b/CHANGELOG.md index ff1fcbc..0fffcd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ You can also use the [PACKAGES](https://github.com/oznu/docker-homebridge#option All notable changes to this project will be documented in this file. +## 1.3.6 + +- [FIX] potential fix for #37 (multiple deebots) + ## 1.3.5 - [FIX] more logs and code refactor for potential fix for #37 (multiple deebots) diff --git a/deebotEcovacsAPI.js b/deebotEcovacsAPI.js index bf4755a..83218ca 100644 --- a/deebotEcovacsAPI.js +++ b/deebotEcovacsAPI.js @@ -11,8 +11,6 @@ module.exports = { }; function DeebotEcovacsAPI(log, platform) { - EventEmitter.call(this); - this.log = log; this.platform = platform; this.login = platform.login; @@ -65,7 +63,7 @@ DeebotEcovacsAPI.prototype = { var Characteristic = this.platform.api.hap.Characteristic; var vacBot = deebotAccessory.vacBot; - + EventEmitter.call(vacBot); vacBot.on('ready', (event) => { this.log.debug('INFO - Vacbot ' + deebotAccessory.name + ' ready: ' + JSON.stringify(event)); diff --git a/package.json b/package.json index 0b2b59c..5c1d41d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-deebotecovacs", - "version": "1.3.5", + "version": "1.3.6", "author": "Nicolas Dujardin", "description": "Publish your deebot ecovacs as an homekit accessory", "main": "index.js",