Skip to content

Commit

Permalink
fix(homebridge): handle charging battery status for base station
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreif committed Jul 15, 2019
1 parent f815956 commit d22ccac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homebridge/base-device-accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function getBatteryLevel({ batteryLevel, batteryStatus }: RingDeviceData) {
return batteryLevel
} else if (batteryStatus === 'full' || batteryStatus === 'charged') {
return 100
} else if (batteryStatus === 'ok') {
} else if (batteryStatus === 'ok' || batteryStatus === 'charging') {
return 50
}
return 0
Expand Down

0 comments on commit d22ccac

Please sign in to comment.