Skip to content

Commit d22ccac

Browse files
committed
fix(homebridge): handle charging battery status for base station
#65
1 parent f815956 commit d22ccac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

homebridge/base-device-accessory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function getBatteryLevel({ batteryLevel, batteryStatus }: RingDeviceData) {
88
return batteryLevel
99
} else if (batteryStatus === 'full' || batteryStatus === 'charged') {
1010
return 100
11-
} else if (batteryStatus === 'ok') {
11+
} else if (batteryStatus === 'ok' || batteryStatus === 'charging') {
1212
return 50
1313
}
1414
return 0

0 commit comments

Comments
 (0)