UNPKG

@ronniepettersson/homebridge-dummy

Version:

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

12 lines 389 B
import { strings } from '../i18n/i18n.js'; export function assert(log, caller, assertable, ...keys) { let valid = true; for (const key of keys) { if (assertable[key] === undefined) { log.error(strings.accessory.missingRequired, caller, `'${key.toString()}'`); valid = false; } } return valid; } //# sourceMappingURL=validation.js.map