homebridge-enphase-envoy 9.7.1 → 9.7.2
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.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -117,7 +117,7 @@ class EnvoyPlatform {
|
|
|
117
117
|
const emitLog = !enableDebugMode ? false : log.info(`Device: ${host} ${deviceName}, debug: ${debug}.`);
|
|
118
118
|
})
|
|
119
119
|
.on('warn', (warn) => {
|
|
120
|
-
const
|
|
120
|
+
const emitLog = disableLogWarn ? false : log.warn(`Device: ${host} ${deviceName}, ${warn}.`);
|
|
121
121
|
})
|
|
122
122
|
.on('error', (error) => {
|
|
123
123
|
const emitLog = disableLogError ? false : log.error(`Device: ${host} ${deviceName}, ${error}.`);
|
|
@@ -128,7 +128,7 @@ class EnvoyPlatform {
|
|
|
128
128
|
impulseGenerator.on('start', async () => {
|
|
129
129
|
try {
|
|
130
130
|
const startDone = await envoyDevice.start();
|
|
131
|
-
const stopImpulseGenerator = startDone ? impulseGenerator.stop() : false;
|
|
131
|
+
const stopImpulseGenerator = startDone ? await impulseGenerator.stop() : false;
|
|
132
132
|
} catch (error) {
|
|
133
133
|
const emitLog = disableLogError ? false : log.error(`Device: ${host} ${deviceName}, ${error}, trying again.`);
|
|
134
134
|
};
|
|
@@ -137,7 +137,7 @@ class EnvoyPlatform {
|
|
|
137
137
|
});
|
|
138
138
|
|
|
139
139
|
//start impulse generator
|
|
140
|
-
impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
|
|
140
|
+
await impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
|
|
141
141
|
} catch (error) {
|
|
142
142
|
throw new Error(`Device: ${host} ${deviceName}, Did finish launching error: ${error}.`);
|
|
143
143
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"displayName": "Enphase Envoy",
|
|
4
4
|
"name": "homebridge-enphase-envoy",
|
|
5
|
-
"version": "9.7.
|
|
5
|
+
"version": "9.7.2",
|
|
6
6
|
"description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|