Skip to content

Commit

Permalink
log level
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw committed Jan 22, 2022
1 parent 985eae6 commit 491ef32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions lib/NbAccessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class Bridge extends homebridgeLib.AccessoryDelegate {
this.doorSensors = {}
this.openers = {}
this.service = new NbService.Bridge(this)
this.manageLogLevel(this.service.characteristicDelegate('logLevel'))
this.dummyService = new homebridgeLib.ServiceDelegate.Dummy(this)

this.client = new NbClient({
Expand Down
2 changes: 0 additions & 2 deletions lib/NbService.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ class Bridge extends homebridgeLib.ServiceDelegate {
key: 'logLevel',
Characteristic: this.Characteristics.my.LogLevel,
value: nbAccessory.platform.logLevel
}).on('didSet', (value) => {
nbAccessory.logLevel = value
})
this.addCharacteristicDelegate({
key: 'statusFault',
Expand Down

0 comments on commit 491ef32

Please sign in to comment.