Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Aug 9, 2024
1 parent 5b01014 commit f5d810c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/server.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

const mqtt = require('mqtt-connection');
const net = require('net');
const types = require('./datapoints');
const net = require('node:net');
const mqtt = require('mqtt-connection');
const types = require('./datapoints');
// const memwatch = require('memwatch-next');
// const heapdump = require('heapdump');
const hueCalc = true;
Expand Down
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
*
* ioBroker sonoff Adapter
*
* (c) 2017-2023 bluefox
* (c) 2017-2024 bluefox
*
* MIT License
*
*/
'use strict';

const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const adapterName = require('./package.json').name.split('.').pop();
const Server = require('./lib/server');
let server = null;
let adapter;
const Server = require('./lib/server');
let server = null;
let adapter;

function decrypt(key, value) {
let result = '';
Expand Down
2 changes: 1 addition & 1 deletion test/testServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ describe('Sonoff server: Test mqtt server', () => {
})(r, rules[r]);
}

// give time to client to receive all messages
// give time to a client to receive all messages
it('wait', done => {
setTimeout(() => done(), 1000);
}).timeout(3000);
Expand Down

0 comments on commit f5d810c

Please sign in to comment.