mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 11:14:19 +00:00
fix: aqara/lumi enforce modelId meta (#986)
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import {it} from "vitest";
|
||||
import * as common from "../src/common";
|
||||
import type {ExtraMetas, RepoImageMeta} from "../src/types";
|
||||
|
||||
export const IMAGE_LUMI = "20240726111155_OTA_lumi.switch.n1aeu1_0.0.0_0025_20240725_8F4299.ota";
|
||||
export const IMAGE_GLEDOPTO = "GL-B-008P_V17A1_OTAV7.ota";
|
||||
export const IMAGE_TUYA = "1662693814-oem_mg21_zg_nh_win_cover_relay_OTA_1.0.7.bin";
|
||||
export const IMAGE_V14_1 = "ZLinky_router_v14.ota";
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
getAdjustedContent,
|
||||
IMAGE_GLEDOPTO,
|
||||
IMAGE_INVALID,
|
||||
IMAGE_LUMI,
|
||||
IMAGE_TUYA,
|
||||
IMAGE_V12_1,
|
||||
IMAGE_V12_1_METAS,
|
||||
@@ -688,6 +689,8 @@ Text after end tag`);
|
||||
["", IMAGE_TUYA, "Tuya image requires extra `manufacturerName` metadata"],
|
||||
['"modelId": "GL-C-008"', IMAGE_GLEDOPTO, undefined],
|
||||
["", IMAGE_GLEDOPTO, "Gledopto image requires extra `modelId` metadata"],
|
||||
['"modelId": "lumi.switch.n1aeu1"', IMAGE_LUMI, undefined],
|
||||
["", IMAGE_LUMI, "Lumi/Aqara image requires extra `modelId` metadata"],
|
||||
['"manufacturerName": ["GleDopto"]', IMAGE_GLEDOPTO, "Gledopto image requires extra `modelId` metadata"],
|
||||
['"manufacturerName": ["OtherManuf"]', IMAGE_GLEDOPTO, undefined],
|
||||
])("manufacturer specific checks", async (body: string, image: string, error: string | undefined) => {
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user