Skip to content

Commit

Permalink
Updated regex for new feed line identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickey Scherrer committed Oct 2, 2021
1 parent c57d5d8 commit 5fac2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/mta_subway/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def parse_subway_status(data):
line_alias = "H" if line == "S" else str(line)

# Search for line name in affected lines XML.
line_re = re.compile("NYCT_" + line_alias + "$")
line_re = re.compile("MTASBWY_" + line_alias + "$")
hits = [
_ for _ in soup.find_all("Affects")
if _.findChildren("LineRef", text=line_re)
Expand Down

0 comments on commit 5fac2f2

Please sign in to comment.