Skip to content

Commit

Permalink
fix: endpoint.configureReporting should use manufacturerCode when def…
Browse files Browse the repository at this point in the history
…ined

Fixes #843
  • Loading branch information
sjorge committed Dec 27, 2023
1 parent 8208402 commit b8f3f31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/model/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ class Endpoint extends Entity {
if (typeof item.attribute === 'object') {
dataType = item.attribute.type;
attrId = item.attribute.ID;
if (item.attribute.hasOwnProperty('manufacturerCode')) options.manufacturerCode = item.attribute.manufacturerCode;

Check failure on line 630 in src/controller/model/endpoint.ts

View workflow job for this annotation

GitHub Actions / ci

Property 'manufacturerCode' does not exist on type '{ ID: number; type: number; }'.
} else {
/* istanbul ignore else */
if (cluster.hasAttribute(item.attribute)) {
Expand Down

0 comments on commit b8f3f31

Please sign in to comment.