all_entrances = seam.acs.entrances.list(
acs_system_id=acs_system.acs_system_id
)
# Filter for entrances with the common entrance category types.
common_entrance_category_types = ["common", "common (PMS)"]
def filter_entrances_by_profile_type(entrance_list, category_types):
common_entrances = []
for entrance in entrance_list:
if entrance["visionline_metadata"]["door_category"] in category_types:
common_entrances.append(entrance)
return common_entrances
common_entrances = filter_entrances_by_profile_type(
all_entrances,
common_entrance_category_types
)