summaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-03-29 06:53:53 +0800
committerZhineng Li <[email protected]>2026-03-29 06:53:53 +0800
commit256f19558f8ed5747c15c85f7e401835787504eb (patch)
tree1d879482c4945bd2b5d6fd94e60d831f6023d33c /src/index.ts
downloadhomebridge-xiaomi-aircondition-ma2-256f19558f8ed5747c15c85f7e401835787504eb.tar.gz
homebridge-xiaomi-aircondition-ma2-256f19558f8ed5747c15c85f7e401835787504eb.zip
first commit
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
new file mode 100644
index 0000000..a18f86f
--- /dev/null
+++ b/src/index.ts
@@ -0,0 +1,8 @@
+import type { API } from 'homebridge';
+
+import { PLATFORM_NAME } from './settings.js';
+import { Platform } from './platform.js';
+
+export default (api: API) => {
+ api.registerPlatform(PLATFORM_NAME, Platform);
+};