@iobroker/legacy-testing 0.3.2 → 0.3.3
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/README.md +1 -1
- package/package.json +1 -1
- package/setup.js +2 -2
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Legacy test modules for ioBroker
|
|
|
11
11
|
|
|
12
12
|
## Changelog
|
|
13
13
|
<!-- ### **WORK IN PROGRESS** -->
|
|
14
|
-
### 0.3.
|
|
14
|
+
### 0.3.3 (2023-05-08)
|
|
15
15
|
* (bluefox) Added possibility to install additional adapters at start
|
|
16
16
|
* (bluefox) Added setOfflineState/getOfflineState
|
|
17
17
|
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -664,7 +664,7 @@ function startAdapter(objects, states, callback) {
|
|
|
664
664
|
|
|
665
665
|
function startCustomAdapter(adapterName, adapterInstance) {
|
|
666
666
|
adapterInstance = adapterInstance || 0;
|
|
667
|
-
const id = `${adapterName || pkg.name}.${adapterInstance}`;
|
|
667
|
+
const id = `${adapterName || pkg.name.split('.')[1]}.${adapterInstance}`;
|
|
668
668
|
if (adaptersStarted[id]) {
|
|
669
669
|
console.log(`Adapter ${id} already started ...`);
|
|
670
670
|
return;
|
|
@@ -672,7 +672,7 @@ function startCustomAdapter(adapterName, adapterInstance) {
|
|
|
672
672
|
adaptersStarted[id] = true;
|
|
673
673
|
console.log(`startAdapter ${id} ...`);
|
|
674
674
|
const _pkg = adapterName ? require(`${rootDir}tmp/node_modules/iobroker.${adapterName}/package.json`) : pkg;
|
|
675
|
-
adapterName = adapterName || pkg.name;
|
|
675
|
+
adapterName = adapterName || pkg.name.split('.')[1];
|
|
676
676
|
if (fs.existsSync(`${rootDir}tmp/node_modules/iobroker.${adapterName}/${_pkg.main || 'main.js'}`)) {
|
|
677
677
|
try {
|
|
678
678
|
if (debug) {
|