Skip to content

Commit

Permalink
Changed the call to add external device descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kirovilya authored Jan 24, 2024
1 parent 1d29cbc commit e38a912
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,10 @@ class Zigbee extends utils.Adapter {
const toAdd = {...definition};
delete toAdd['homeassistant'];
try {
zigbeeHerdsmanConverters.addDeviceDefinition(toAdd);
} catch {
zigbeeHerdsmanConverters.addDefinition(toAdd);
} catch (e) {
this.log.error(`unable to apply external converter ${JSON.stringify(toAdd)}`);
this.log.error(`${e}`);
}
}
}
Expand Down

0 comments on commit e38a912

Please sign in to comment.