aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHåkon Solbjørg <hakon@solbj.org>2023-02-25 13:32:59 +0100
committerHåkon Solbjørg <hakon@solbj.org>2023-02-25 13:32:59 +0100
commit81e3ae30b402cd3816c517e730c08015c5c70e37 (patch)
tree9ab3aa2b7c0ad9fdd59148c419a8dab0bc9b2740 /tools
parentee3c52962055dac3b089a917707f54ce4a640177 (diff)
fix(koblingsplan): Support connecting to multiple devices
Diffstat (limited to 'tools')
-rw-r--r--tools/koblingsplan/script.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/koblingsplan/script.py b/tools/koblingsplan/script.py
index e296eae..b573254 100644
--- a/tools/koblingsplan/script.py
+++ b/tools/koblingsplan/script.py
@@ -65,6 +65,12 @@ with open('tg23-koblingsplan.csv', newline='') as csvfile:
current_iteration['b']['node_description'] = " ".join(if_data[1:])
current_iteration['b']['node'] = if_data[0]
+ # replace multi-device with single device
+ if " x " in current_iteration['a']['model'].lower():
+ current_iteration['a']['model'] = current_iteration['a']['model'].split(' ')[-1]
+ if " x " in current_iteration['b']['model'].lower():
+ current_iteration['b']['model'] = current_iteration['b']['model'].split(' ')[-1]
+
dataset.append(current_iteration)
with open('tg23-koblingsplan.yml', 'w') as f: