UNPKG

@ronniepettersson/homebridge-dummy

Version:

Create Homebridge accessories to help with automation and control — scheduling, delays, sensors, commands, webhooks, and more

15 lines 493 B
import { HomebridgePluginUiServer } from '@homebridge/plugin-ui-utils'; import { getAllTranslations, setLanguage } from '../i18n/i18n.js'; class DummyConfigUiServer extends HomebridgePluginUiServer { constructor() { super(); this.onRequest('i18n', this.i18n.bind(this)); this.ready(); } async i18n(language) { setLanguage(language); return getAllTranslations(); } } (() => new DummyConfigUiServer())(); //# sourceMappingURL=server.js.map