hoffmation-base 3.1.4 → 3.2.0
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/lib/devices/CameraDevice.js +1 -1
- package/lib/devices/dachs/dachs.js +1 -1
- package/lib/devices/dachs/dachsTemperatureSensor.js +1 -1
- package/lib/devices/govee/own-govee-device.js +1 -1
- package/lib/devices/victron/victron-device.js +1 -1
- package/lib/services/Sonos/own-sonos-device.js +1 -1
- package/lib/services/ac/ac-device.js +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ class CameraDevice {
|
|
|
49
49
|
this._info.allDevicesKey = `camera-${roomName}-${name}`;
|
|
50
50
|
devices_1.Devices.alLDevices[this._info.allDevicesKey] = this;
|
|
51
51
|
this.persistDeviceInfo();
|
|
52
|
-
this.loadDeviceSettings
|
|
52
|
+
utils_1.Utils.guardedTimeout(this.loadDeviceSettings, 4500, this);
|
|
53
53
|
if (!services_1.Persistence.anyDboActive) {
|
|
54
54
|
this._initialized = true;
|
|
55
55
|
}
|
|
@@ -55,7 +55,7 @@ class Dachs {
|
|
|
55
55
|
this._influxClient = new lib_1.DachsInfluxClient(options.influxDb);
|
|
56
56
|
}
|
|
57
57
|
this.persistDeviceInfo();
|
|
58
|
-
this.loadDeviceSettings
|
|
58
|
+
utils_1.Utils.guardedTimeout(this.loadDeviceSettings, 4500, this);
|
|
59
59
|
const modifiedOptions = lodash_1.default.cloneDeep(options);
|
|
60
60
|
modifiedOptions.connectionOptions.resultConfig = {
|
|
61
61
|
flatten: true,
|
|
@@ -32,7 +32,7 @@ class DachsTemperatureSensor {
|
|
|
32
32
|
devices_1.Devices.alLDevices[this._info.allDevicesKey] = this;
|
|
33
33
|
devices_1.Devices.temperatureWarmWater = this;
|
|
34
34
|
this.persistDeviceInfo();
|
|
35
|
-
utils_1.Utils.guardedTimeout(this.loadDeviceSettings,
|
|
35
|
+
utils_1.Utils.guardedTimeout(this.loadDeviceSettings, 4500, this);
|
|
36
36
|
}
|
|
37
37
|
/** @inheritDoc */
|
|
38
38
|
get customName() {
|
|
@@ -47,7 +47,7 @@ class OwnGoveeDevice {
|
|
|
47
47
|
index_1.Devices.alLDevices[`govee-${roomName}-${deviceId}`] = this;
|
|
48
48
|
this.persistDeviceInfo();
|
|
49
49
|
this.blockAutomationHandler = new blockAutomaticHandler_1.BlockAutomaticHandler(this.restoreTargetAutomaticValue.bind(this), this.log.bind(this));
|
|
50
|
-
utils_1.Utils.guardedTimeout(this.loadDeviceSettings,
|
|
50
|
+
utils_1.Utils.guardedTimeout(this.loadDeviceSettings, 4800, this);
|
|
51
51
|
}
|
|
52
52
|
get color() {
|
|
53
53
|
return this._color;
|
|
@@ -39,7 +39,7 @@ class VictronDevice {
|
|
|
39
39
|
devices_1.Devices.alLDevices['victron'] = this;
|
|
40
40
|
devices_1.Devices.energymanager = this;
|
|
41
41
|
this.persistDeviceInfo();
|
|
42
|
-
this.loadDeviceSettings
|
|
42
|
+
utils_1.Utils.guardedTimeout(this.loadDeviceSettings, 4500, this);
|
|
43
43
|
this._victronConsumer = new victron_mqtt_consumer_1.VictronMqttConsumer(opts);
|
|
44
44
|
this._iCalculationInterval = utils_1.Utils.guardedInterval(() => {
|
|
45
45
|
if (this.data.battery.soc) {
|
|
@@ -34,7 +34,7 @@ class OwnSonosDevice {
|
|
|
34
34
|
this._info.allDevicesKey = `sonos-${roomName}-${discoveryName}`;
|
|
35
35
|
devices_1.Devices.alLDevices[`sonos-${roomName}-${discoveryName}`] = this;
|
|
36
36
|
this.persistDeviceInfo();
|
|
37
|
-
this.loadDeviceSettings
|
|
37
|
+
utils_1.Utils.guardedTimeout(this.loadDeviceSettings, 4500, this);
|
|
38
38
|
}
|
|
39
39
|
get info() {
|
|
40
40
|
return this._info;
|
|
@@ -88,7 +88,7 @@ class AcDevice {
|
|
|
88
88
|
utils_1.Utils.guardedInterval(this.automaticCheck, 5 * 60 * 1000, this, false);
|
|
89
89
|
utils_1.Utils.guardedInterval(this.persist, 15 * 60 * 1000, this, true);
|
|
90
90
|
this.persistDeviceInfo();
|
|
91
|
-
this.loadDeviceSettings
|
|
91
|
+
utils_1.Utils.guardedTimeout(this.loadDeviceSettings, 4500, this);
|
|
92
92
|
this.blockAutomationHandler = new blockAutomaticHandler_1.BlockAutomaticHandler(this.restoreTargetAutomaticValue.bind(this), this.log.bind(this));
|
|
93
93
|
}
|
|
94
94
|
/** @inheritDoc */
|