Skip to content

Commit

Permalink
gen devices list update
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Nov 20, 2024
1 parent fe3cbc5 commit c2b2629
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .tools/gen_devices_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit c2b2629

Please sign in to comment.