homebridge-eveatmo
Version:
Homebridge plugin which adds a Netatmo weatherstation as HomeKit device and tries to act like Elgato Eve Room/Weather
18 lines (13 loc) • 421 B
JavaScript
;
function loadPlatform(homebridgeStub) {
let CapturedPlatform = null;
const stub = Object.assign({}, homebridgeStub, {
registerPlatform(pluginName, platformName, PlatformClass) {
CapturedPlatform = PlatformClass;
},
});
/* eslint-disable-next-line @typescript-eslint/no-require-imports */
require('../index')(stub);
return CapturedPlatform;
}
module.exports = { loadPlatform };