From 2e582a4597a4c08aebd78c8cf48c90a788c640ba Mon Sep 17 00:00:00 2001 From: Thom Troy Date: Thu, 28 Dec 2017 21:37:51 +0000 Subject: [PATCH] pass stops_at to get_station_by_name (#11304) --- homeassistant/components/sensor/irish_rail_transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/irish_rail_transport.py b/homeassistant/components/sensor/irish_rail_transport.py index ad2a312ce63..0c34a5f6ce8 100644 --- a/homeassistant/components/sensor/irish_rail_transport.py +++ b/homeassistant/components/sensor/irish_rail_transport.py @@ -148,7 +148,8 @@ class IrishRailTransportData(object): """Get the latest data from irishrail.""" trains = self._ir_api.get_station_by_name(self.station, direction=self.direction, - destination=self.destination) + destination=self.destination, + stops_at=self.stops_at) stops_at = self.stops_at if self.stops_at else '' self.info = [] for train in trains: