From c2b2629cbfa4784764939e9a5f65d9dca95175c6 Mon Sep 17 00:00:00 2001 From: Tcharp38 Date: Wed, 20 Nov 2024 16:42:43 +0100 Subject: [PATCH] gen devices list update --- .tools/gen_devices_list.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.tools/gen_devices_list.php b/.tools/gen_devices_list.php index b834ce8ce5..00ecc9fb0c 100644 --- a/.tools/gen_devices_list.php +++ b/.tools/gen_devices_list.php @@ -96,14 +96,13 @@ function getDevicesList($from = "Abeille") { $devicesList[$dirEntry] = $dev; if (isset($devConf['alternateIds'])) { - $idList = explode(',', $devConf['alternateIds']); - foreach ($idList as $id) { - echo("getDevicesList(): Alternate ID '".$id."' for '".$dirEntry."'\n"); + foreach ($devConf['alternateIds'] as $altIdKey => $altId) { + // echo("getDevicesList(): Alternate ID '".$altIdKey."' for '".$dirEntry."'\n"); $dev = array( 'jsonId' => $dirEntry, 'jsonLocation' => $from ); - $devicesList[$id] = $dev; + $devicesList[$altIdKey] = $dev; } } }