fix: accept Zigbee2MQTT raw network maps

Issue: #450
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-09-04 14:58:04 +00:00
committed by claude[bot]
parent 411a0a20a9
commit 8935a736cb
33 changed files with 482 additions and 340 deletions
+11
View File
@@ -5629,6 +5629,17 @@ const MUTANT_DEFINITIONS = [
replace: ' if (candidates.length >= 1) placements.set(node.key, {',
}],
},
{
id: 'zigbee-topology-z2m-camelcase-node-rejected',
guard: 'node --test --test-name-pattern="real anonymized camelCase" test/zigbee-topology.test.mjs',
because: 'the Zigbee2MQTT raw network-map contract uses ieeeAddr; accepting only the '
+ 'bridge/devices snake_case spelling makes every real scan fail as invalid (#450 AC1)',
patches: [{
file: 'src/zigbee-topology.ts',
find: ' const ieee = normalizeIeee(record?.ieeeAddr ?? record?.ieee_address ?? record?.ieee);',
replace: ' const ieee = normalizeIeee(record?.ieee_address ?? record?.ieee);',
}],
},
{
id: 'zigbee-topology-z2m-foreign-response-accepted',
guard: 'node --test test/zigbee-topology.test.mjs',