mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
parent
2cfdb44df6
commit
07bb64815d
@ -143,6 +143,9 @@ class MVGLiveData(object):
|
||||
# find the first departure meeting the criteria
|
||||
if not _departure['destination'].startswith(self._destination):
|
||||
continue
|
||||
elif (self._line is not None
|
||||
and _departure['linename'] != self._line):
|
||||
continue
|
||||
elif _departure['time'] < self._offset:
|
||||
continue
|
||||
# now select the relevant data
|
||||
|
Loading…
x
Reference in New Issue
Block a user