@riddix/hamh 2.1.0-alpha.484 → 2.1.0-alpha.486

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.
@@ -177195,7 +177195,8 @@ var LegacyEndpoint = class _LegacyEndpoint extends EntityEndpoint {
177195
177195
  }
177196
177196
  }
177197
177197
  }
177198
- if (registry2.isAutoBatteryMappingEnabled() && !mapping?.batteryEntity) {
177198
+ const isVacuum = entityId.startsWith("vacuum.");
177199
+ if ((registry2.isAutoBatteryMappingEnabled() || isVacuum) && !mapping?.batteryEntity) {
177199
177200
  const batteryEntityId = registry2.findBatteryEntityForDevice(
177200
177201
  entity.device_id
177201
177202
  );
@@ -177901,9 +177902,9 @@ var BridgeEndpointManager = class extends Service {
177901
177902
  const endpoints = this.root.parts.map((p) => p);
177902
177903
  for (const endpoint of endpoints) {
177903
177904
  try {
177904
- await endpoint.delete();
177905
+ await endpoint.close();
177905
177906
  } catch (e) {
177906
- this.log.warn(`Failed to delete endpoint during dispose:`, e);
177907
+ this.log.warn(`Failed to close endpoint during dispose:`, e);
177907
177908
  }
177908
177909
  }
177909
177910
  }
@@ -179359,9 +179360,9 @@ var ServerModeEndpointManager = class extends Service {
179359
179360
  this.stopObserving();
179360
179361
  if (this.deviceEndpoint) {
179361
179362
  try {
179362
- await this.deviceEndpoint.delete();
179363
+ await this.deviceEndpoint.close();
179363
179364
  } catch (e) {
179364
- this.log.warn(`Failed to delete device endpoint during dispose:`, e);
179365
+ this.log.warn(`Failed to close device endpoint during dispose:`, e);
179365
179366
  }
179366
179367
  this.deviceEndpoint = void 0;
179367
179368
  }