From ed67ed604b0e2f119da60f27e3356bcac25d6da8 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 29 Oct 2018 13:16:13 -0400 Subject: [PATCH] break loop on finding key --- aioupnp/serialization/scpd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aioupnp/serialization/scpd.py b/aioupnp/serialization/scpd.py index 37d161b..75377cd 100644 --- a/aioupnp/serialization/scpd.py +++ b/aioupnp/serialization/scpd.py @@ -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):