-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
27 lines (19 loc) · 745 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict';
const Homey = require('homey');
const process = require('process');
const flowActions = require('./lib/flows/actions');
process.on('unhandledRejection', (reason, promise) => {
console.error(`${new Date().toISOString()} [log] [process] Unhandled Rejection: ${promise}, reason: ${reason}`);
// You can add additional error handling or logging here.
});
module.exports = class AprsApp extends Homey.App {
/**
* onInit is called when the app is initialized.
*/
async onInit() {
this.myAppIdVersion = `${this.homey.manifest.id}/${this.homey.manifest.version}`;
this.log(`${this.myAppIdVersion} - onInit - starting...`);
await flowActions.init(this);
this.log(`${this.myAppIdVersion} - onInit - started.`);
}
};