@mega-yfue/eufy-sdk 0.5.0-beta.67 → 0.5.0-beta.69

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
@@ -5938,7 +5938,15 @@ function isStationAlarmOutput(ctx) {
5938
5938
  function isEvidencedStationAlarm(ctx) {
5939
5939
  return isStationAlarmOutput(ctx) && HUB_ALARM_EVIDENCE.some((param) => ctx.paramIds.has(param));
5940
5940
  }
5941
- var S1_PRO_ALARM_MODELS = /* @__PURE__ */ new Set(["T8134"]);
5941
+ var S1_PRO_ALARM_MODELS = /* @__PURE__ */ new Set([
5942
+ "T8134",
5943
+ "T814X",
5944
+ "T8214",
5945
+ "T8790",
5946
+ "T8122",
5947
+ "T8113-Z",
5948
+ "T8400"
5949
+ ]);
5942
5950
  function isEvidencedAttachedCamera(ctx) {
5943
5951
  return ctx.codec === "camera" && ctx.homeBaseAttached === true && hasReportedEasSwitch(ctx) && (!isStation9000({ deviceType: ctx.stationDeviceType }) || S1_PRO_ALARM_MODELS.has(ctx.model ?? ""));
5944
5952
  }
@@ -13564,9 +13572,12 @@ function coerceByType(type, raw, name, logger = noopLogger) {
13564
13572
  return String(raw);
13565
13573
  }
13566
13574
  }
13575
+ var BOOL_WIRE = /* @__PURE__ */ new Set(["0", "1", "true", "false"]);
13567
13576
  function coerce(spec, raw, invert = false, logger = noopLogger) {
13568
13577
  if (spec.decode)
13569
13578
  return spec.decode(raw);
13579
+ if (spec.raw && spec.type === "bool" && typeof raw === "string" && !BOOL_WIRE.has(raw))
13580
+ return raw;
13570
13581
  const v = coerceByType(spec.type, raw, spec.name, spec.raw ? noopLogger : logger);
13571
13582
  return spec.type === "bool" && invert ? !v : v;
13572
13583
  }