homebridge-enphase-envoy 10.2.5-beta.5 → 10.2.5-beta.7

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "displayName": "Enphase Envoy",
4
4
  "name": "homebridge-enphase-envoy",
5
- "version": "10.2.5-beta.5",
5
+ "version": "10.2.5-beta.7",
6
6
  "description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
package/src/envoydata.js CHANGED
@@ -12,7 +12,7 @@ class EnvoyData extends EventEmitter {
12
12
  super();
13
13
 
14
14
  //device configuration
15
- this.host = host;
15
+ this.host = device.host;
16
16
  this.envoyFirmware7xxTokenGenerationMode = device.envoyFirmware7xxTokenGenerationMode;
17
17
  this.envoyPasswd = device.envoyPasswd;
18
18
  this.enlightenUser = device.enlightenUser;
package/src/functions.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { promises as fsPromises } from 'fs';
2
2
  import axios from 'axios';
3
+ import { Agent } from 'https';
3
4
  import { ApiCodes, TimezoneLocaleMap } from './constants.js';
4
5
 
5
6
  class Functions {
@@ -123,7 +124,7 @@ class Functions {
123
124
  },
124
125
  withCredentials: true,
125
126
  httpsAgent: new Agent({
126
- keepAlive: false,
127
+ keepAlive: true,
127
128
  rejectUnauthorized: false
128
129
  }),
129
130
  timeout: 60000