From 803e7ef5146b6ed57e0eea927544b1b095701096 Mon Sep 17 00:00:00 2001 From: Grzegorz Date: Tue, 3 Aug 2021 13:34:24 +0200 Subject: [PATCH] release 4.9.0 ## [4.9.0] - (03.08.2021) ## Changes - added support for Ensemble (Enpowers and Encharges) - fixed wrong named Encharges to AC Batteries - other fixes and performance improvements --- CHANGELOG.md | 2 +- index.js | 4 +--- package.json | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e0304a..9916c9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Important note v4.5.0 and above!!! Version 4.5.0 and above need to be used with Homebridge min. v1.3.0. -## [4.9.0] - (xx.08.2021) +## [4.9.0] - (03.08.2021) ## Changes - added support for Ensemble (Enpowers and Encharges) - fixed wrong named Encharges to AC Batteries diff --git a/index.js b/index.js index 448c4e1..9b68b60 100644 --- a/index.js +++ b/index.js @@ -3340,9 +3340,7 @@ class envoyDevice { this.checkDeviceState = true; //start prepare accessory - if (this.startPrepareAccessory) { - this.prepareAccessory(); - } + const startPrepareAccessory = this.startPrepareAccessory ? this.prepareAccessory() : false; } catch (error) { this.log.error('Device: %s %s, update Device state error: %s', this.host, this.name, error); this.checkDeviceState = false; diff --git a/package.json b/package.json index 8c171e5..9edd470 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "Enphase Envoy", "name": "homebridge-enphase-envoy", - "version": "4.9.0-beta63", + "version": "4.9.0", "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to read data from Enphase Envoy-S.", "license": "MIT", "author": "grzegorz914",