-
Notifications
You must be signed in to change notification settings - Fork 34
/
index.js
23 lines (21 loc) · 692 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// index.js
// Sahil Chaddha
//
// Created by Sahil Chaddha on 13/08/2018.
// Copyright © 2018 sahilchaddha.com. All rights reserved.
//
// Dafang Platform
const Dafang = require('./src/dafang')
module.exports = (homebridge) => {
var homebridgeGlobals = {
Service: homebridge.hap.Service,
Characteristic: homebridge.hap.Characteristic,
Accessory: homebridge.platformAccessory,
UUIDGen: homebridge.hap.uuid,
Categories: homebridge.hap.Accessory.Categories,
StreamController: homebridge.hap.StreamController,
}
Dafang.globals.setHomebridge(homebridgeGlobals)
homebridge.registerPlatform(Dafang.pluginName, Dafang.platformName, Dafang.platform, true)
}