ring-client-api 11.7.0-beta.2 → 11.7.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,7 +84,7 @@ class RingCamera extends subscribed_1.Subscribed {
84
84
  this.hasLight = this.initialData.led_status !== undefined;
85
85
  this.hasSiren = this.initialData.siren_status !== undefined;
86
86
  this.onBatteryLevel = this.onData.pipe((0, operators_1.map)((data) => {
87
- if (!('battery_level' in data)) {
87
+ if (!('battery_life' in data)) {
88
88
  return null;
89
89
  }
90
90
  return getBatteryLevel(data);
@@ -125,7 +125,7 @@ class RingCamera extends subscribed_1.Subscribed {
125
125
  return notifications[notifications.length - 1];
126
126
  }
127
127
  get batteryLevel() {
128
- if (!('battery_level' in this.data)) {
128
+ if (!('battery_life' in this.data)) {
129
129
  return null;
130
130
  }
131
131
  return getBatteryLevel(this.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ring-client-api",
3
- "version": "11.7.0-beta.2",
3
+ "version": "11.7.0-beta.3",
4
4
  "description": "Unofficial API for Ring doorbells, cameras, security alarm system and smart lighting",
5
5
  "main": "lib/index.js",
6
6
  "exports": {