diff --git a/lib/WsPlatform.js b/lib/WsPlatform.js index 4fd321d..3c6ac87 100644 --- a/lib/WsPlatform.js +++ b/lib/WsPlatform.js @@ -29,7 +29,7 @@ class WsPlatform extends homebridgeLib.Platform { optionParser.listKey('locations') optionParser.boolKey('noPressure') optionParser.boolKey('noHumidity') - optionParser.on('usageError', (message) => { + optionParser.on('userInputError', (message) => { this.warn('config.json: %s', message) }) try {