diff --git a/CHANGELOG.md b/CHANGELOG.md index dd45ff6..50c47fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 1.0.2 + +- [FIX] harmony.end is not a function #161 + ## 1.0.1 - [FIX] Input set in a scene is ignored, and main activity is turned on #157 diff --git a/harmonyPlatform.js b/harmonyPlatform.js index b50b5d8..4c1a60f 100644 --- a/harmonyPlatform.js +++ b/harmonyPlatform.js @@ -57,7 +57,7 @@ function HarmonyPlatform(log, config, api) { for (let i = 0, len = this.platforms.length; i < len; i++) { let platform = this.platforms[i]; platform.harmonyBase.harmony.removeAllListeners(); - platform.harmonyBase.harmony.end(); + platform.harmonyBase.harmony.close(); } }.bind(this) ) diff --git a/package.json b/package.json index 82538a2..c1df541 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-harmony", - "version": "1.0.1", + "version": "1.0.2", "author": "Nicolas Dujardin", "description": "Publish your harmony activities as homekit accessories", "main": "index.js", @@ -24,7 +24,7 @@ "homekit" ], "dependencies": { - "harmony-websocket": "^1.0.9", + "harmony-websocket": "^1.3.0", "npm": "^6.9.0", "request": "^2.65.0", "websocket": "^1.0.28",