forked from PatrickE94/com.zaptec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.ts
More file actions
26 lines (20 loc) · 633 Bytes
/
app.ts
File metadata and controls
26 lines (20 loc) · 633 Bytes
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
import sourceMapSupport from 'source-map-support';
import { App } from 'homey';
import * as appJson from './app.json';
sourceMapSupport.install();
class ZaptecApp extends App {
/**
* onInit is called when the app is initialized.
*/
async onInit(): Promise<void> {
this.log('ZaptecApp is initializing...');
const { version: firmwareVersion } = this.homey;
const { version: appVersion } = appJson;
this.log(`firmwareVersion: ${firmwareVersion}`);
this.log(`appVersion: ${appVersion}`);
}
async onUninit(): Promise<void> {
this.log('ZaptecApp is stopping');
}
}
module.exports = ZaptecApp;