mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
pass stops_at to get_station_by_name (#11304)
This commit is contained in:
parent
5d38eec37d
commit
2e582a4597
@ -148,7 +148,8 @@ class IrishRailTransportData(object):
|
|||||||
"""Get the latest data from irishrail."""
|
"""Get the latest data from irishrail."""
|
||||||
trains = self._ir_api.get_station_by_name(self.station,
|
trains = self._ir_api.get_station_by_name(self.station,
|
||||||
direction=self.direction,
|
direction=self.direction,
|
||||||
destination=self.destination)
|
destination=self.destination,
|
||||||
|
stops_at=self.stops_at)
|
||||||
stops_at = self.stops_at if self.stops_at else ''
|
stops_at = self.stops_at if self.stops_at else ''
|
||||||
self.info = []
|
self.info = []
|
||||||
for train in trains:
|
for train in trains:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user