How to use the homebridge.API function in homebridge

To help you get started, we’ve selected a few homebridge examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tommasomarchionni / homebridge-openhab2 / spec / mocks / homebridgeMock.ts View on Github external
constructor(config) {
    const API = require("homebridge").API;
    this._api = new API();
    this._config = config;
  }