Skip to content

Commit

Permalink
Update ZpAccessory.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw committed Aug 11, 2023
1 parent 4657a40 commit 14d7c49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ZpAccessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ class ZpAccessory extends homebridgeLib.AccessoryDelegate {
batteryLevel: battery.percentage,
chargingState: battery.charging
? this.Characteristics.hap.ChargingState.CHARGING
: this.Characteristics.hap.ChargingState.NOT_CHARGING
: this.Characteristics.hap.ChargingState.NOT_CHARGING,
lowBatteryThreshold: 20
})
}
this.batteryService.values.batteryLevel = battery.percentage
Expand Down Expand Up @@ -337,6 +338,7 @@ class Tv extends ZpAccessory {
params.externalAccessory = true
super(platform, params)
this.inheritLogLevel(params.master)
// params.master.context.tv = this._context
this.debug('TV accessory')
this.tvService = new ZpService.Tv(this, params)
this.zpClient.on('lastSeenUpdated', () => {
Expand Down

0 comments on commit 14d7c49

Please sign in to comment.