sonoff
This commit is contained in:
@@ -22,7 +22,7 @@ const logger = {
|
||||
function Objects(cb) {
|
||||
if (!(this instanceof Objects)) return new Objects(cb);
|
||||
|
||||
const _Objects = require(rootDir + 'tmp/node_modules/iobroker.js-controller/lib/objects');
|
||||
const _Objects = require(rootDir + 'tmp/node_modules/yunkong2.js-controller/lib/objects');
|
||||
this.connected = false;
|
||||
const that = this;
|
||||
|
||||
|
||||
@@ -407,7 +407,7 @@ function clearControllerLog() {
|
||||
}
|
||||
|
||||
function clearDB() {
|
||||
const dirPath = rootDir + 'tmp/iobroker-data/sqlite';
|
||||
const dirPath = rootDir + 'tmp/yunkong2-data/sqlite';
|
||||
let files;
|
||||
try {
|
||||
if (fs.existsSync(dirPath)) {
|
||||
|
||||
@@ -21,7 +21,7 @@ const logger = {
|
||||
|
||||
function States(cb, stateChange) {
|
||||
const that = this;
|
||||
const _States = require(rootDir + 'tmp/node_modules/iobroker.js-controller/lib/states');
|
||||
const _States = require(rootDir + 'tmp/node_modules/yunkong2.js-controller/lib/states');
|
||||
let callbackId = 0;
|
||||
|
||||
const options = {
|
||||
|
||||
@@ -53,12 +53,12 @@ describe('Test package.json and io-package.json', () => {
|
||||
console.log();
|
||||
}
|
||||
if (
|
||||
ioPackage.common.title.indexOf('iobroker') !== -1 ||
|
||||
ioPackage.common.title.indexOf('ioBroker') !== -1 ||
|
||||
ioPackage.common.title.indexOf('yunkong2') !== -1 ||
|
||||
ioPackage.common.title.indexOf('yunkong2') !== -1 ||
|
||||
ioPackage.common.title.indexOf('adapter') !== -1 ||
|
||||
ioPackage.common.title.indexOf('Adapter') !== -1
|
||||
) {
|
||||
console.log('WARNING: title contains Adapter or ioBroker. It is clear anyway, that it is adapter for ioBroker.');
|
||||
console.log('WARNING: title contains Adapter or yunkong2. It is clear anyway, that it is adapter for yunkong2.');
|
||||
console.log();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user