From 3ef94baa788d8c8ae390573ff724181f64b70405 Mon Sep 17 00:00:00 2001 From: Paul Regan <64710345+paulr34@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:44:32 -0400 Subject: [PATCH] adding a profileID constant for matter helper (#1466) --- src-shared/db-enum.js | 3 ++- src/store/zap/actions.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src-shared/db-enum.js b/src-shared/db-enum.js index 05318b7f68..4e9a9ccc53 100644 --- a/src-shared/db-enum.js +++ b/src-shared/db-enum.js @@ -39,7 +39,8 @@ exports.rootNode = { endpointId: 0, getParentEndpointIdentifier: null, deviceVersion: 1, - type: 'rootNode' + type: 'rootNode', + profileID: 259 } exports.packageOptionCategory = { diff --git a/src/store/zap/actions.js b/src/store/zap/actions.js index 4c030b8d6f..c7c714663f 100644 --- a/src/store/zap/actions.js +++ b/src/store/zap/actions.js @@ -480,7 +480,8 @@ export async function loadComposition(context) { let endpoint = await addEndpoint(context, { endpointId: dbEnum.rootNode.endpointId, parentEndpointIdentifier: dbEnum.rootNode.parentEndpointIdentifier, - endpointType: endpointTypeData.id + endpointType: endpointTypeData.id, + profileId: dbEnum.rootNode.profileID }) return endpoint }