iobroker.sonoff 3.2.1 → 3.3.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/main.js CHANGED
@@ -75,17 +75,22 @@ function startAdapter(options) {
75
75
 
76
76
  function main() {
77
77
  adapter.config.TELE_SENSOR = adapter.config.TELE_SENSOR === true || adapter.config.TELE_SENSOR === 'true';
78
- adapter.config.TELE_STATE = adapter.config.TELE_STATE === true || adapter.config.TELE_STATE === 'true';
78
+ adapter.config.TELE_STATE = adapter.config.TELE_STATE === true || adapter.config.TELE_STATE === 'true';
79
79
  adapter.config.STAT_RESULT = adapter.config.STAT_RESULT === true || adapter.config.STAT_RESULT === 'true';
80
- adapter.config.OBJ_TREE = adapter.config.OBJ_TREE === true || adapter.config.OBJ_TREE === 'true';
80
+ adapter.config.OBJ_TREE = adapter.config.OBJ_TREE === true || adapter.config.OBJ_TREE === 'true';
81
81
 
82
82
  // subscribe for all own variables
83
83
  adapter.subscribeStates('*');
84
84
 
85
85
  // read all states and set alive to false
86
- adapter.getStatesOf('', '', (err, states) =>
87
- states && states.length && states.forEach(state =>
88
- state._id.match(/\.alive$/) && adapter.setForeignState(state._id, false, true)));
86
+ adapter.getStatesOf(
87
+ '',
88
+ '',
89
+ (err, states) =>
90
+ states &&
91
+ states.length &&
92
+ states.forEach(state => state._id.match(/\.alive$/) && adapter.setForeignState(state._id, false, true)),
93
+ );
89
94
 
90
95
  server = new Server(adapter);
91
96
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "iobroker.sonoff",
3
3
  "description": "The adapter allows to send and receive MQTT messages from ioBroker and to be a broker.",
4
- "version": "3.2.1",
4
+ "version": "3.3.0",
5
5
  "author": "bluefox <dogafox@gmail.com>",
6
6
  "homepage": "https://github.com/ioBroker/ioBroker.sonoff",
7
7
  "repository": {
@@ -16,7 +16,7 @@
16
16
  "esp"
17
17
  ],
18
18
  "dependencies": {
19
- "@iobroker/adapter-core": "^3.2.2",
19
+ "@iobroker/adapter-core": "^3.3.2",
20
20
  "mqtt-connection": "^4.1.0"
21
21
  },
22
22
  "devDependencies": {
@@ -24,12 +24,13 @@
24
24
  "@alcalzone/release-script-plugin-iobroker": "^3.7.2",
25
25
  "@alcalzone/release-script-plugin-license": "^3.7.0",
26
26
  "@alcalzone/release-script-plugin-manual-review": "^3.7.0",
27
- "@iobroker/adapter-dev": "^1.3.0",
28
- "@iobroker/legacy-testing": "^1.0.13",
29
- "@iobroker/testing": "^5.0.0",
30
- "mqtt": "^5.10.1",
31
- "mocha": "^10.7.3",
32
- "chai": "^4.5.0"
27
+ "@iobroker/adapter-dev": "^1.4.0",
28
+ "@iobroker/eslint-config": "^2.1.0",
29
+ "@iobroker/legacy-testing": "^2.0.2",
30
+ "@iobroker/testing": "^5.1.1",
31
+ "chai": "^4.5.0",
32
+ "mocha": "^11.7.2",
33
+ "mqtt": "^5.14.0"
33
34
  },
34
35
  "bugs": {
35
36
  "url": "https://github.com/ioBroker/ioBroker.sonoff/issues"
@@ -44,6 +45,7 @@
44
45
  ],
45
46
  "scripts": {
46
47
  "test": "node node_modules/mocha/bin/mocha --exit",
48
+ "lint": "eslint -c eslint.config.mjs .",
47
49
  "release": "release-script",
48
50
  "release-patch": "release-script patch --yes",
49
51
  "release-minor": "release-script minor --yes",