@riddix/hamh 2.1.0-alpha.485 → 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
  );