@riddix/hamh 2.1.0-alpha.467 → 2.1.0-alpha.468

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.
@@ -176465,6 +176465,19 @@ var BridgeEndpointManager = class extends Service {
176465
176465
  this.log.warn(`Failed to delete endpoint ${endpoint.entityId}:`, e);
176466
176466
  }
176467
176467
  this.mappingFingerprints.delete(endpoint.entityId);
176468
+ } else if (this.registry.isAutoComposedDevicesEnabled() && this.registry.isComposedSubEntityUsed(endpoint.entityId)) {
176469
+ this.log.info(
176470
+ `Deleting standalone endpoint ${endpoint.entityId} \u2014 consumed by composed device`
176471
+ );
176472
+ try {
176473
+ await endpoint.delete();
176474
+ } catch (e) {
176475
+ this.log.warn(
176476
+ `Failed to delete composed sub-entity endpoint ${endpoint.entityId}:`,
176477
+ e
176478
+ );
176479
+ }
176480
+ this.mappingFingerprints.delete(endpoint.entityId);
176468
176481
  } else {
176469
176482
  const currentMapping = this.getEntityMapping(endpoint.entityId);
176470
176483
  const currentFp = this.computeMappingFingerprint(currentMapping);