@riddix/hamh 2.1.0-alpha.572 → 2.1.0-alpha.573

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.
@@ -181312,10 +181312,9 @@ var ServerModeVacuumEndpoint = class _ServerModeVacuumEndpoint extends EntityEnd
181312
181312
  await super.delete();
181313
181313
  }
181314
181314
  /**
181315
- * Write directly to the RvcOperationalState cluster in a fresh
181316
- * transaction. Each call produces a unique errorStateDetails value
181317
- * so the struct is never deep-equal to its predecessor,
181318
- * guaranteeing matter.js emits attrsChanged → subscription report.
181315
+ * Force a non-empty subscription report by writing a unique
181316
+ * errorStateDetails to the RvcOperationalState cluster via
181317
+ * setStateOf (the same path used by all matter.js state updates).
181319
181318
  *
181320
181319
  * errorStateDetails (id 2) has conformance "O" (always optional)
181321
181320
  * unlike errorStateLabel (id 1) which requires errorStateId 128-191.
@@ -181325,13 +181324,12 @@ var ServerModeVacuumEndpoint = class _ServerModeVacuumEndpoint extends EntityEnd
181325
181324
  this.keepaliveCounter++;
181326
181325
  const counter = this.keepaliveCounter;
181327
181326
  logger203.info(`Keepalive #${counter} for ${this.entityId}`);
181328
- await this.act("vacuum-keepalive", async (agent) => {
181329
- const opState = agent.get(RvcOperationalStateServer);
181330
- const errorStateId = opState.state.operationalError.errorStateId;
181331
- opState.state.operationalError = {
181332
- errorStateId,
181327
+ const currentError = this.stateOf(RvcOperationalStateServer).operationalError;
181328
+ await this.setStateOf(RvcOperationalStateServer, {
181329
+ operationalError: {
181330
+ errorStateId: currentError.errorStateId,
181333
181331
  errorStateDetails: `k${counter}`
181334
- };
181332
+ }
181335
181333
  });
181336
181334
  logger203.info(`Keepalive #${counter} committed for ${this.entityId}`);
181337
181335
  } catch (e) {