homebridge-enphase-envoy 9.6.1 → 9.6.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/config.schema.json +1 -1
- package/index.js +3 -5
- package/package.json +4 -2
- package/src/digestauth.js +0 -1
- package/src/envoydevice.js +1 -3
- package/src/envoytoken.js +1 -3
- package/src/impulsegenerator.js +0 -1
- package/src/mqtt.js +0 -1
- package/src/passwdcalc.js +0 -1
- package/src/restful.js +0 -1
package/config.schema.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"title": "Firmware 7.x.x",
|
|
35
35
|
"type": "boolean",
|
|
36
36
|
"default": false,
|
|
37
|
-
"description": "This enable support for Envoy with firmware v7.x.x and newer.",
|
|
37
|
+
"description": "This enable support for Envoy with firmware v7.x.x / v8.x.x and newer.",
|
|
38
38
|
"required": true
|
|
39
39
|
},
|
|
40
40
|
"envoyFirmware7xxTokenGenerationMode": {
|
package/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
import fs from 'fs';
|
|
3
1
|
import { join } from 'path';
|
|
4
|
-
import { mkdirSync } from 'fs';
|
|
2
|
+
import { mkdirSync, existsSync, writeFileSync } from 'fs';
|
|
5
3
|
import EnvoyDevice from './src/envoydevice.js';
|
|
6
4
|
import ImpulseGenerator from './src/impulsegenerator.js';
|
|
7
5
|
import { PluginName, PlatformName } from './src/constants.js';
|
|
@@ -84,8 +82,8 @@ class EnvoyPlatform {
|
|
|
84
82
|
];
|
|
85
83
|
|
|
86
84
|
files.forEach((file) => {
|
|
87
|
-
if (!
|
|
88
|
-
|
|
85
|
+
if (!existsSync(file)) {
|
|
86
|
+
writeFileSync(file, '0');
|
|
89
87
|
}
|
|
90
88
|
});
|
|
91
89
|
} catch (error) {
|
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.6.
|
|
5
|
+
"version": "9.6.2",
|
|
6
6
|
"description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"url": "https://github.com/grzegorz914/homebridge-enphase-envoy/issues"
|
|
19
19
|
},
|
|
20
20
|
"type": "module",
|
|
21
|
-
|
|
21
|
+
"exports": {
|
|
22
|
+
".": "./index.js"
|
|
23
|
+
},
|
|
22
24
|
"files": [
|
|
23
25
|
"src",
|
|
24
26
|
"index.js",
|
package/src/digestauth.js
CHANGED
package/src/envoydevice.js
CHANGED
package/src/envoytoken.js
CHANGED
package/src/impulsegenerator.js
CHANGED
package/src/mqtt.js
CHANGED
package/src/passwdcalc.js
CHANGED
package/src/restful.js
CHANGED