use ID instead of name

This commit is contained in:
2023-04-11 12:30:05 +02:00
parent 42c48ab548
commit 8fe2d8150d
+2 -2
View File
@@ -22,9 +22,9 @@ class IOC(ServerThread):
if not prefix.endswith(":"):
prefix += ":"
# allow dict with custom names
# allow dict with custom IDs
if not isinstance(adjs, dict):
adjs = {a.name: a for a in adjs}
adjs = {a.ID: a for a in adjs}
pvdb = mk_pvdb(adjs)
pvdb.update(DEFAULTS)