@iobroker/legacy-testing 0.2.2 → 0.2.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 +4 -4
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.2.
|
|
14
|
+
### 0.2.3 (2023-05-07)
|
|
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
|
@@ -894,8 +894,8 @@ function stopController(cb) {
|
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
// Set up the adapter
|
|
897
|
-
async function setAdapterConfig(common, native, instance, customAdapterName
|
|
898
|
-
const id = `system.adapter.${(adapterName || customAdapterName).split('.').pop()}.${
|
|
897
|
+
async function setAdapterConfig(common, native, instance, customAdapterName) {
|
|
898
|
+
const id = `system.adapter.${(adapterName || customAdapterName).split('.').pop()}.${instance || 0}`;
|
|
899
899
|
if (fs.existsSync(`${rootDir}tmp/${appName}-data/objects.json`)) {
|
|
900
900
|
const objects = JSON.parse(fs.readFileSync(`${rootDir}tmp/${appName}-data/objects.json`).toString());
|
|
901
901
|
if (common) {
|
|
@@ -926,8 +926,8 @@ async function setAdapterConfig(common, native, instance, customAdapterName, cus
|
|
|
926
926
|
}
|
|
927
927
|
|
|
928
928
|
// Read config of the adapter
|
|
929
|
-
async function getAdapterConfig(instance, customAdapterName
|
|
930
|
-
const id = `system.adapter.${(adapterName || customAdapterName).split('.').pop()}.${
|
|
929
|
+
async function getAdapterConfig(instance, customAdapterName) {
|
|
930
|
+
const id = `system.adapter.${(adapterName || customAdapterName).split('.').pop()}.${instance || 0}`;
|
|
931
931
|
if (fs.existsSync(`${rootDir}tmp/${appName}-data/objects.json`)) {
|
|
932
932
|
const objects = JSON.parse(fs.readFileSync(`${rootDir}tmp/${appName}-data/objects.json`).toString());
|
|
933
933
|
return objects[id];
|