diff --git a/index.js b/index.js index 16eef1b..085c8ef 100644 --- a/index.js +++ b/index.js @@ -44,7 +44,8 @@ function SMAHomeManager(log, config, api) { // Validate configuration, since `homebridge-config-ui-x` is optional. ['signals', 'surplusSignals'].forEach(requiredTopLevelKey => { if (!Object.keys(config).includes(requiredTopLevelKey)) { - throw new Error(`Invalid configuration: ${requiredTopLevelKey} key is missing. See config.schema.json.`); + log.warning(`Invalid configuration: ${requiredTopLevelKey} key is missing. See config.schema.json.`); + return; } });