DeviceAvailability -> Availability

This commit is contained in:
Koen Kanters 2020-04-11 18:14:40 +02:00
parent b8b4ff9ee7
commit ba0d930ddd
3 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ const ExtensionDeviceConfigure = require('./extension/deviceConfigure');
const ExtensionDeviceGroupMembership = require('./extension/legacy/deviceGroupMembership');
const ExtensionBridgeLegacy = require('./extension/legacy/bridgeLegacy');
const ExtensionGroups = require('./extension/groups');
const ExtensionDeviceAvailability = require('./extension/deviceAvailability');
const ExtensionAvailability = require('./extension/availability');
const ExtensionDeviceBind = require('./extension/deviceBind');
const ExtensionDeviceReport = require('./extension/deviceReport');
const ExtensionDeviceEvent = require('./extension/deviceEvent');
@ -66,7 +66,7 @@ class Controller {
}
if (settings.get().advanced.availability_timeout) {
this.extensions.push(new ExtensionDeviceAvailability(...args));
this.extensions.push(new ExtensionAvailability(...args));
}
}

View File

@ -16,7 +16,7 @@ const Hours25 = 1000 * 60 * 60 * 25;
/**
* This extensions pings devices to check if they are online.
*/
class DeviceAvailability extends Extension {
class Availability extends Extension {
constructor(zigbee, mqtt, state, publishEntityState, eventBus) {
super(zigbee, mqtt, state, publishEntityState, eventBus);
@ -191,4 +191,4 @@ class DeviceAvailability extends Extension {
}
}
module.exports = DeviceAvailability;
module.exports = Availability;

View File

@ -19,7 +19,7 @@ describe('Device availability', () => {
let controller;
function getExtension() {
return controller.extensions.find((e) => e.constructor.name === 'DeviceAvailability');
return controller.extensions.find((e) => e.constructor.name === 'Availability');
}
beforeEach(async () => {