homebridge-tasmota-control 1.4.0-beta.35 → 1.4.0-beta.37

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.
Files changed (2) hide show
  1. package/index.js +6 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -30,7 +30,7 @@ class tasmotaPlatform {
30
30
  for (const device of config.devices) {
31
31
 
32
32
  //check accessory is enabled
33
- const disableAccessory = deviceConfig.disableAccessory || false;
33
+ const disableAccessory = device.disableAccessory || false;
34
34
  if (disableAccessory) {
35
35
  continue;
36
36
  }
@@ -85,12 +85,12 @@ class tasmotaPlatform {
85
85
  let deviceType;
86
86
  switch (info.deviceType) {
87
87
  case 0://mielhvac
88
- //check files exists, if not then create it
89
- const postFix = deviceConfig.host.split('.').join('');
90
- const defaultHeatingSetTemperatureFile = `${prefDir}/defaultHeatingSetTemperature_${postFix}`;
91
- const defaultCoolingSetTemperatureFile = `${prefDir}/defaultCoolingSetTemperature_${postFix}`;
92
-
93
88
  try {
89
+ //check files exists, if not then create it
90
+ const postFix = device.host.split('.').join('');
91
+ const defaultHeatingSetTemperatureFile = `${prefDir}/defaultHeatingSetTemperature_${postFix}`;
92
+ const defaultCoolingSetTemperatureFile = `${prefDir}/defaultCoolingSetTemperature_${postFix}`;
93
+
94
94
  const files = [
95
95
  defaultHeatingSetTemperatureFile,
96
96
  defaultCoolingSetTemperatureFile
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.4.0-beta.35",
4
+ "version": "1.4.0-beta.37",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",