Skip to content

Commit

Permalink
Update WsPlatform.js
Browse files Browse the repository at this point in the history
Bug fix: no warning message on config.json errors.
  • Loading branch information
ebaauw committed Apr 9, 2020
1 parent 1fea856 commit c519f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WsPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c519f68

Please sign in to comment.