Skip to content

Commit

Permalink
feat: Update manufaturer codes (#963)
Browse files Browse the repository at this point in the history
* fix: Update manufaturer codes

* update
  • Loading branch information
Koenkk authored Mar 9, 2024
1 parent f5270fe commit 641c51b
Show file tree
Hide file tree
Showing 3 changed files with 956 additions and 1,310 deletions.
2 changes: 1 addition & 1 deletion src/controller/helpers/zclFrameConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface KeyValue {[s: string]: number | string}
// if the header is lacking the information.
function getCluster(frame: ZclFrame, deviceManufacturerID: number): Cluster {
let cluster = frame.Cluster;
if (!frame?.Header?.manufacturerCode && frame?.Cluster && deviceManufacturerID == ManufacturerCode.LegrandNetatmo) {
if (!frame?.Header?.manufacturerCode && frame?.Cluster && deviceManufacturerID == ManufacturerCode.LEGRAND_GROUP) {
cluster = ZclUtils.getCluster(frame.Cluster.ID, deviceManufacturerID);
}
return cluster;
Expand Down
Loading

0 comments on commit 641c51b

Please sign in to comment.