homebridge-tasmota-control 1.4.1-beta.4 → 1.4.1-beta.5

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.4.1-beta.4",
4
+ "version": "1.4.1-beta.5",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/deviceinfo.js CHANGED
@@ -64,8 +64,8 @@ class DeviceInfo extends EventEmitter {
64
64
  const mielhvac = statusSnsKeys.includes('MiElHVAC') ? types.push(0) : false;
65
65
  const lights = statusStsKeys.some(key => LightKeys.includes(key)) ? types.push(2) : false;
66
66
  const fans = statusStsKeys.includes('FanSpeed') ? types.push(3) : false;
67
+ const switches = !mielhvac && !lights && !fans ? types.push(1) : false
67
68
  const sensors = statusSnsKeys.some(key => SensorKeys.includes(key)) ? types.push(4) : false;
68
- const switches = !mielhvac && !lights && !fans && !sensors ? types.push(1) : false
69
69
  const obj = {
70
70
  deviceTypes: types,
71
71
  deviceName: deviceName,