@camstack/addon-provider-mqtt-ha 0.1.10 → 0.1.11

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/addon.js CHANGED
@@ -60375,9 +60375,24 @@ var NpuInfoSchema = object({
60375
60375
  name: string().optional(),
60376
60376
  generation: _enum(["xdna1", "xdna2"]).optional()
60377
60377
  });
60378
+ var CoralBusSchema = _enum(["usb", "pci"]);
60378
60379
  var CoralInfoSchema = object({
60379
60380
  type: literal("coral-edgetpu"),
60380
- bus: string().optional()
60381
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60382
+ bus: string().optional(),
60383
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60384
+ count: number().int().nonnegative().optional(),
60385
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60386
+ units: array(object({
60387
+ bus: CoralBusSchema,
60388
+ count: number().int().nonnegative()
60389
+ })).readonly().optional(),
60390
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60391
+ unavailable: array(object({
60392
+ bus: CoralBusSchema,
60393
+ count: number().int().nonnegative(),
60394
+ reason: _enum(["driver-missing", "device-not-accessible"])
60395
+ })).readonly().optional()
60381
60396
  });
60382
60397
  var HardwareInfoSchema = object({
60383
60398
  platform: HardwarePlatformSchema,
package/dist/addon.mjs CHANGED
@@ -60376,9 +60376,24 @@ var NpuInfoSchema = object({
60376
60376
  name: string().optional(),
60377
60377
  generation: _enum(["xdna1", "xdna2"]).optional()
60378
60378
  });
60379
+ var CoralBusSchema = _enum(["usb", "pci"]);
60379
60380
  var CoralInfoSchema = object({
60380
60381
  type: literal("coral-edgetpu"),
60381
- bus: string().optional()
60382
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60383
+ bus: string().optional(),
60384
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60385
+ count: number().int().nonnegative().optional(),
60386
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60387
+ units: array(object({
60388
+ bus: CoralBusSchema,
60389
+ count: number().int().nonnegative()
60390
+ })).readonly().optional(),
60391
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60392
+ unavailable: array(object({
60393
+ bus: CoralBusSchema,
60394
+ count: number().int().nonnegative(),
60395
+ reason: _enum(["driver-missing", "device-not-accessible"])
60396
+ })).readonly().optional()
60382
60397
  });
60383
60398
  var HardwareInfoSchema = object({
60384
60399
  platform: HardwarePlatformSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-mqtt-ha",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Home Assistant MQTT discovery import provider for CamStack — adopts entities published on homeassistant/+/+/config",
5
5
  "keywords": [
6
6
  "camstack",