Skip to content

Commit

Permalink
Fix protocol sorting by family (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
shbatm authored Feb 25, 2023
1 parent 25d93a1 commit ecd0c35
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyisyox/nodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ def parse_node_entity(self, feature: dict[str, Any]) -> None:
and family[TAG_ADDRESS] == NodeFamily.NODESERVER
):
feature["node_server"] = family.get("instance", "")
feature["protocol"] = self.get_protocol_from_family(
feature.get(TAG_FAMILY)
)

feature["protocol"] = self.get_protocol_from_family(family)

entity = Node(self, address, name, NodeDetail(**feature))
self.add_or_update_entity(address, name, entity)
except (TypeError, KeyError, ValueError) as exc:
Expand Down

0 comments on commit ecd0c35

Please sign in to comment.