From 5fac2f27815600b7df747754313724985a454cc3 Mon Sep 17 00:00:00 2001 From: Mickey Scherrer Date: Sat, 2 Oct 2021 19:17:44 -0400 Subject: [PATCH] Updated regex for new feed line identifier --- custom_components/mta_subway/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mta_subway/sensor.py b/custom_components/mta_subway/sensor.py index b295ce2..9eac046 100644 --- a/custom_components/mta_subway/sensor.py +++ b/custom_components/mta_subway/sensor.py @@ -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)