@mega-yfue/eufy-sdk 0.6.0-beta.26 → 0.6.0-beta.27
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.
package/dist/index.js
CHANGED
|
@@ -4779,6 +4779,9 @@ var BATTERY_MEMBERS = cellGated({
|
|
|
4779
4779
|
* The headline percentage, and this capability's detection evidence: reporting 1101 is what proves a
|
|
4780
4780
|
* device is battery-powered, which is also the fact `MediaProvider` reads to decide a stream needs a
|
|
4781
4781
|
* power budget. Published flat as `battery` — `level` alone is claimed by `suction` too.
|
|
4782
|
+
*
|
|
4783
|
+
* Withheld on a device that resolved `lock`, whose own `battery` member reads the same param 1101 and
|
|
4784
|
+
* owns the `battery` property there, so the two do not both claim it.
|
|
4782
4785
|
*/
|
|
4783
4786
|
level: {
|
|
4784
4787
|
param: BATTERY_PARAM.BATTERY,
|
|
@@ -4787,6 +4790,7 @@ var BATTERY_MEMBERS = cellGated({
|
|
|
4787
4790
|
unit: "%",
|
|
4788
4791
|
kind: "percent",
|
|
4789
4792
|
provenance: "verified",
|
|
4793
|
+
available: (ctx) => !hasCapability(ctx, "lock"),
|
|
4790
4794
|
description: "Battery level 0-100 (verified: param 1101)."
|
|
4791
4795
|
},
|
|
4792
4796
|
/**
|