Skip to content

Commit 3ef94ba

Browse files
authored
adding a profileID constant for matter helper (#1466)
1 parent 3a5b85a commit 3ef94ba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src-shared/db-enum.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ exports.rootNode = {
3939
endpointId: 0,
4040
getParentEndpointIdentifier: null,
4141
deviceVersion: 1,
42-
type: 'rootNode'
42+
type: 'rootNode',
43+
profileID: 259
4344
}
4445

4546
exports.packageOptionCategory = {

src/store/zap/actions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,8 @@ export async function loadComposition(context) {
480480
let endpoint = await addEndpoint(context, {
481481
endpointId: dbEnum.rootNode.endpointId,
482482
parentEndpointIdentifier: dbEnum.rootNode.parentEndpointIdentifier,
483-
endpointType: endpointTypeData.id
483+
endpointType: endpointTypeData.id,
484+
profileId: dbEnum.rootNode.profileID
484485
})
485486
return endpoint
486487
}

0 commit comments

Comments
 (0)