Skip to content

Commit

Permalink
fix: Add missing response ID to view command (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
canardos authored Sep 9, 2024
1 parent 2e948a9 commit fc229cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/zspec/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export const Clusters: Readonly<Record<ClusterName, Readonly<ClusterDefinition>>
},
view: {
ID: 1,
response: 1,
parameters: [{name: 'groupid', type: DataType.UINT16}],
},
getMembership: {
Expand Down
10 changes: 5 additions & 5 deletions test/controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4384,7 +4384,7 @@ describe('Controller', () => {
],
name: 'add',
},
view: {ID: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
view: {ID: 1, response: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
getMembership: {
ID: 2,
response: 2,
Expand Down Expand Up @@ -5238,7 +5238,7 @@ describe('Controller', () => {
],
name: 'add',
},
view: {ID: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
view: {ID: 1, response: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
getMembership: {
ID: 2,
response: 2,
Expand Down Expand Up @@ -5347,7 +5347,7 @@ describe('Controller', () => {
],
name: 'add',
},
view: {ID: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
view: {ID: 1, response: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
getMembership: {
ID: 2,
response: 2,
Expand Down Expand Up @@ -5443,7 +5443,7 @@ describe('Controller', () => {
],
name: 'add',
},
view: {ID: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
view: {ID: 1, response: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
getMembership: {
ID: 2,
response: 2,
Expand Down Expand Up @@ -6672,7 +6672,7 @@ describe('Controller', () => {
],
name: 'add',
},
view: {ID: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
view: {ID: 1, response: 1, parameters: [{name: 'groupid', type: 33}], name: 'view'},
getMembership: {
ID: 2,
response: 2,
Expand Down

0 comments on commit fc229cc

Please sign in to comment.