Skip to content

Commit

Permalink
Favour using towards instead of destinationName.
Browse files Browse the repository at this point in the history
  • Loading branch information
morosanmihail committed May 31, 2024
1 parent 37bf6a8 commit 6e10c2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/london_tfl/tfl_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@


def get_destination(entry):
if 'towards' in entry:
return entry['towards']
if 'destinationName' in entry:
return entry['destinationName']
else:
if 'towards' in entry:
return entry['towards']
return ''


Expand Down

0 comments on commit 6e10c2b

Please sign in to comment.