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

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.
@@ -177986,21 +177986,6 @@ var advertisedOperationalStates = [
177986
177986
  OperationalState4.Docked
177987
177987
  ];
177988
177988
  var RvcOperationalStateServerBase = class extends RvcOperationalStateServer {
177989
- /**
177990
- * Alternating nonce that forces a structural difference in operationalError
177991
- * on every update call. matter.js's Datasource uses isDeepEqual to detect
177992
- * attribute changes — writing the same value is silently ignored, so no
177993
- * subscription report is generated. By toggling errorStateDetails between
177994
- * absent and "" (an optional, semantically meaningless field when
177995
- * errorStateId is NoError), we guarantee the struct is never deep-equal to
177996
- * its predecessor, which makes matter.js emit attrsChanged and produce a
177997
- * subscription report.
177998
- *
177999
- * This works around a matter.js 0.16.x bug where the subscription
178000
- * heartbeat timer (sendInterval) fails to fire for certain sessions,
178001
- * causing Apple Home (iOS via Apple TV proxy) to show "Updating...".
178002
- */
178003
- keepaliveNonce = false;
178004
177989
  async initialize() {
178005
177990
  this.state.operationalStateList = advertisedOperationalStates.map((id) => ({
178006
177991
  operationalStateId: id
@@ -178021,12 +178006,11 @@ var RvcOperationalStateServerBase = class extends RvcOperationalStateServer {
178021
178006
  this.agent
178022
178007
  );
178023
178008
  const previousState = this.state.operationalState;
178024
- this.keepaliveNonce = !this.keepaliveNonce;
178025
178009
  const errorStateId = newState === OperationalState4.Error ? ErrorState.Stuck : ErrorState.NoError;
178026
- const operationalError = { errorStateId };
178027
- if (this.keepaliveNonce) {
178028
- operationalError.errorStateDetails = "";
178029
- }
178010
+ const operationalError = {
178011
+ errorStateId,
178012
+ errorStateDetails: String(Date.now())
178013
+ };
178030
178014
  applyPatchState(
178031
178015
  this.state,
178032
178016
  {