mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-10-06 10:57:47 +00:00
fix: Allow duplicate imageType/manufCode on different modelId (#1216)
This commit is contained in:
+2
-1
@@ -210,7 +210,8 @@ export function hasManufacturerImage(list: RepoImageMeta[], image: RepoImageMeta
|
||||
(i.fileVersion === image.fileVersion &&
|
||||
i.imageType === image.imageType &&
|
||||
i.manufacturerCode === image.manufacturerCode &&
|
||||
(!i.manufacturerName || extraManufacturerName?.some((v) => i.manufacturerName!.includes(v))))),
|
||||
(!i.manufacturerName || extraManufacturerName?.some((v) => i.manufacturerName!.includes(v))) &&
|
||||
((!i.modelId && !image.modelId) || (i.modelId && image.modelId && i.modelId === image.modelId)))),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user