Skip to content

Commit

Permalink
fix: lookup manufacturer when unknown
Browse files Browse the repository at this point in the history
Fixes #1571
  • Loading branch information
robertsLando committed Aug 24, 2021
1 parent 1e47d90 commit b436c4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ZwaveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3053,7 +3053,10 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
}:${hexIds[1]}:${node.firmwareVersion || '0.0'}`

const deviceConfig = zwaveNode.deviceConfig || {
label: `Unknown product ${hexIds[1]}`,
label:
this.driver.configManager.lookupManufacturer(
zwaveNode.manufacturerId
) || `Unknown product ${hexIds[1]}`,
description: hexIds[2],
manufacturer: `Unknown manufacturer ${hexIds[0]}`,
}
Expand Down

2 comments on commit b436c4c

@AlCalzone
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm did you mean to change the line that starts with manufacturer: instead?

@robertsLando
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😨

Please sign in to comment.