break loop on finding key
This commit is contained in:
parent
475a0c7738
commit
ed67ed604b
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ def parse_device_dict(xml_dict: dict) -> Dict:
|
|||
schema_key = m[1][0]
|
||||
root = m[2][5]
|
||||
xml_dict = flatten_keys(xml_dict, "{%s}" % schema_key)[root]
|
||||
break
|
||||
result = {}
|
||||
for k, v in xml_dict.items():
|
||||
if isinstance(xml_dict[k], dict):
|
||||
|
|
Loading…
Reference in a new issue