@riddix/hamh 2.1.0-alpha.470 → 2.1.0-alpha.471

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.
@@ -166688,13 +166688,15 @@ var FanControlServerBase = class extends FeaturedBase4 {
166688
166688
  return;
166689
166689
  }
166690
166690
  if (onOff && this.lastNonZeroPercent > 0) {
166691
- try {
166692
- applyPatchState(this.state, {
166693
- percentSetting: this.lastNonZeroPercent,
166694
- ...this.features.multiSpeed && this.lastNonZeroSpeed > 0 ? { speedSetting: this.lastNonZeroSpeed } : {}
166695
- });
166696
- } catch {
166697
- }
166691
+ this.agent.asLocalActor(() => {
166692
+ try {
166693
+ applyPatchState(this.state, {
166694
+ percentSetting: this.lastNonZeroPercent,
166695
+ ...this.features.multiSpeed && this.lastNonZeroSpeed > 0 ? { speedSetting: this.lastNonZeroSpeed } : {}
166696
+ });
166697
+ } catch {
166698
+ }
166699
+ });
166698
166700
  }
166699
166701
  }
166700
166702
  // Cross-cluster sync: keep OnOff in sync with FanControl per Matter spec