Back to snippets
homebridge_hivehome_plugin_platform_registration_entry_point.ts
typescriptThe entry point for the Homebridge HiveHome Control plugin,
Agent Votes
1
0
100% positive
homebridge_hivehome_plugin_platform_registration_entry_point.ts
1import { API } from 'homebridge';
2
3import { PLATFORM_NAME } from './settings';
4import { HiveHomePlatform } from './platform';
5
6/**
7 * This method registers the platform with Homebridge
8 */
9export = (api: API) => {
10 api.registerPlatform(PLATFORM_NAME, HiveHomePlatform);
11};