homebridge-tasmota-control 1.4.0-beta.37 → 1.4.0-beta.38
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 +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -85,12 +85,12 @@ class tasmotaPlatform {
|
|
|
85
85
|
let deviceType;
|
|
86
86
|
switch (info.deviceType) {
|
|
87
87
|
case 0://mielhvac
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const defaultCoolingSetTemperatureFile = `${prefDir}/defaultCoolingSetTemperature_${postFix}`;
|
|
88
|
+
//check files exists, if not then create it
|
|
89
|
+
const postFix = device.host.split('.').join('');
|
|
90
|
+
const defaultHeatingSetTemperatureFile = `${prefDir}/defaultHeatingSetTemperature_${postFix}`;
|
|
91
|
+
const defaultCoolingSetTemperatureFile = `${prefDir}/defaultCoolingSetTemperature_${postFix}`;
|
|
93
92
|
|
|
93
|
+
try {
|
|
94
94
|
const files = [
|
|
95
95
|
defaultHeatingSetTemperatureFile,
|
|
96
96
|
defaultCoolingSetTemperatureFile
|
package/package.json
CHANGED