UNPKG

homebridge-eveatmo

Version:

Homebridge plugin which adds a Netatmo weatherstation as HomeKit device and tries to act like Elgato Eve Room/Weather

18 lines (15 loc) 376 B
'use strict'; function runBuild(device, methodName) { return new Promise((resolve, reject) => { device[methodName]((err, accessories) => { /* eslint-disable-next-line no-undef */ clearInterval(device.runCheckInterval); if (err) { reject(err); return; } resolve(accessories); }); }); } module.exports = { runBuild };