aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-08-04 13:18:14 +0200
committerlonkaars <loek@pipeframe.xyz>2021-08-04 13:18:14 +0200
commit482e06a93f04e1544d06d0889dee49f51f9673c2 (patch)
treef52f48b91bafc8e3fd28dd276d3be9659cb70d91 /index.ts
parent7c93e78865698cc80dd96ccf0e7639cffc85d641 (diff)
plugin still doesn't load :(
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);
}