sonoff
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
+1
-1
@@ -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)) {
|
||||
|
||||
+1
-1
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user