mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 10:28:33 -07:00
7cd30a3a05
* configurable last_seen * Refactor last_seen.
14 lines
506 B
JavaScript
14 lines
506 B
JavaScript
const logger = require('../lib/util/logger');
|
|
|
|
module.exports = {
|
|
stubLogger: (sandbox) => {
|
|
sandbox.stub(logger, 'info').callsFake(() => {});
|
|
sandbox.stub(logger, 'warn').callsFake(() => {});
|
|
sandbox.stub(logger, 'debug').callsFake(() => {});
|
|
sandbox.stub(logger, 'error').callsFake(() => {});
|
|
},
|
|
zigbeeMessage: (device, cid, type, data, epId) => {
|
|
return {data: {cid: cid, data: data}, type: type, endpoints: [{device: device, epId: epId}]};
|
|
},
|
|
};
|