Skip to content

Commit

Permalink
Revert "Return "ok" when commissioning is ok"
Browse files Browse the repository at this point in the history
This reverts commit 1c170b3.
  • Loading branch information
Apollon77 committed Dec 28, 2024
1 parent a9f4cbf commit ad4ff73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/matter/ControllerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ControllerCreateOptions {
}

interface AddDeviceResult {
result: string | false;
result: boolean;
/** The error message */
error?: string;
nodeId?: string;
Expand Down Expand Up @@ -433,7 +433,7 @@ class Controller implements GeneralNode {

await this.registerCommissionedNode(nodeId);

return { result: 'Ok', nodeId: nodeId.toString() };
return { result: true, nodeId: nodeId.toString() };
}

async completeCommissioningForNode(nodeId: NodeId, discoveryData?: DiscoveryData): Promise<AddDeviceResult> {
Expand All @@ -448,7 +448,7 @@ class Controller implements GeneralNode {

await this.registerCommissionedNode(nodeId);

return { result: 'Ok', nodeId: nodeId.toString() };
return { result: true, nodeId: nodeId.toString() };
}

async registerCommissionedNode(nodeId: NodeId): Promise<void> {
Expand Down

0 comments on commit ad4ff73

Please sign in to comment.