matterbridge-test 2.0.18-dev-20260605-430501b → 2.0.18

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/dist/module.js CHANGED
@@ -78,8 +78,9 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
78
78
  });
79
79
  }
80
80
  switchDevice.addRequiredClusters();
81
- if (!this.config.noDevices)
81
+ if (!this.config.noDevices) {
82
82
  await this.registerDevice(switchDevice);
83
+ }
83
84
  }
84
85
  for (let i = 0; i < this.config.loadOutlets; i++) {
85
86
  this.setSelectDevice('serial_outlet_' + i, 'Outlet ' + i);
@@ -108,8 +109,9 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
108
109
  });
109
110
  }
110
111
  outletDevice.addRequiredClusters();
111
- if (!this.config.noDevices)
112
+ if (!this.config.noDevices) {
112
113
  await this.registerDevice(outletDevice);
114
+ }
113
115
  }
114
116
  for (let i = 0; i < this.config.loadLights; i++) {
115
117
  this.setSelectDevice('serial_light_' + i, 'Light ' + i);
@@ -159,8 +161,9 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
159
161
  });
160
162
  }
161
163
  lightDevice.addRequiredClusters();
162
- if (!this.config.noDevices)
164
+ if (!this.config.noDevices) {
163
165
  await this.registerDevice(lightDevice);
166
+ }
164
167
  }
165
168
  this.log.info(`Finished starting platform ${this.config.name} with ${this.getDevices().length} devices:`);
166
169
  for (const device of this.getDevices()) {
@@ -333,7 +336,7 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
333
336
  else {
334
337
  this.log.error(`Device ${CYAN}${value}${er} not found:`);
335
338
  for (const device of this.getDevices()) {
336
- this.log.info(`- device ${device.name}`);
339
+ this.log.info(`- device ${device.deviceName}`);
337
340
  }
338
341
  }
339
342
  }
@@ -347,7 +350,7 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
347
350
  else {
348
351
  this.log.error(`Device ${CYAN}${value}${er} not found:`);
349
352
  for (const device of this.getDevices()) {
350
- this.log.info(`- device ${device.name}`);
353
+ this.log.info(`- device ${device.deviceName}`);
351
354
  }
352
355
  }
353
356
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-test",
3
- "version": "2.0.18-dev-20260605-430501b",
3
+ "version": "2.0.18",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-test",
9
- "version": "2.0.18-dev-20260605-430501b",
9
+ "version": "2.0.18",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.2.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-test",
3
- "version": "2.0.18-dev-20260605-430501b",
3
+ "version": "2.0.18",
4
4
  "description": "Matterbridge test plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",