@riddix/hamh 2.1.0-alpha.541 → 2.1.0-alpha.542
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.
package/dist/backend/cli.js
CHANGED
|
@@ -178186,6 +178186,11 @@ var matterDeviceTypeFactories = {
|
|
|
178186
178186
|
|
|
178187
178187
|
// src/matter/endpoints/composed/user-composed-endpoint.ts
|
|
178188
178188
|
var logger199 = Logger.get("UserComposedEndpoint");
|
|
178189
|
+
function stripBasicInformation(type) {
|
|
178190
|
+
const behaviors = { ...type.behaviors };
|
|
178191
|
+
delete behaviors.bridgedDeviceBasicInformation;
|
|
178192
|
+
return { ...type, behaviors };
|
|
178193
|
+
}
|
|
178189
178194
|
function createEndpointId4(entityId, customName) {
|
|
178190
178195
|
const baseName = customName || entityId;
|
|
178191
178196
|
return baseName.replace(/\./g, "_").replace(/\s+/g, "_");
|
|
@@ -178241,7 +178246,7 @@ var UserComposedEndpoint = class _UserComposedEndpoint extends Endpoint {
|
|
|
178241
178246
|
);
|
|
178242
178247
|
return void 0;
|
|
178243
178248
|
}
|
|
178244
|
-
const primarySub = new Endpoint(primaryType, {
|
|
178249
|
+
const primarySub = new Endpoint(stripBasicInformation(primaryType), {
|
|
178245
178250
|
id: `${endpointId}_primary`
|
|
178246
178251
|
});
|
|
178247
178252
|
parts.push(primarySub);
|
|
@@ -178267,7 +178272,7 @@ var UserComposedEndpoint = class _UserComposedEndpoint extends Endpoint {
|
|
|
178267
178272
|
);
|
|
178268
178273
|
continue;
|
|
178269
178274
|
}
|
|
178270
|
-
const subEndpoint = new Endpoint(subType, {
|
|
178275
|
+
const subEndpoint = new Endpoint(stripBasicInformation(subType), {
|
|
178271
178276
|
id: `${endpointId}_sub_${i}`
|
|
178272
178277
|
});
|
|
178273
178278
|
parts.push(subEndpoint);
|