cleanup admin stuff a little

This commit is contained in:
Ian McEwen
2024-08-24 14:15:37 -07:00
parent ff72fc4804
commit bc508ff9e6
2 changed files with 7 additions and 9 deletions

View File

@@ -95,7 +95,7 @@ class Node:
else:
self.iface._acknowledgment.receivedAck = True
print("")
adminMessage: admin_pb2.AdminMessage = p["decoded"]["admin"]
adminMessage = p["decoded"]["admin"]
if "getConfigResponse" in adminMessage:
resp = adminMessage["getConfigResponse"]
field = list(resp.keys())[0]