aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.ts b/index.ts
index 767376c..b85e13f 100644
--- a/index.ts
+++ b/index.ts
@@ -2,6 +2,6 @@ import { API } from 'homebridge';
import BekenBridge from './plugin';
-export default function Plugin(api: API) {
- api.registerPlatform('BekenBridge', BekenBridge);
+module.exports = (api: API) => {
+ api.registerAccessory('BekenBridge', BekenBridge);
}