homebridge-enphase-envoy 9.4.1-beta.21 → 9.4.1-beta.23

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": "9.4.1-beta.21",
5
+ "version": "9.4.1-beta.23",
6
6
  "description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
@@ -1009,8 +1009,8 @@ class EnvoyDevice extends EventEmitter {
1009
1009
  this.refreshLiveData = false;
1010
1010
  this.emit('error', `Impulse generator error: ${error}.`);
1011
1011
  };
1012
- }).on('state', (state) => {
1013
- state = state ?? false;
1012
+ }).on('state', (samplingState) => {
1013
+ const state = samplingState === true;
1014
1014
  this.feature.dataSampling = state;
1015
1015
 
1016
1016
  if (this.dataRefreshActiveControlsCount > 0) {