Skip to content

Commit

Permalink
Merge pull request #27 from morosanmihail/use_towards_by_default
Browse files Browse the repository at this point in the history
Emergency fix
  • Loading branch information
morosanmihail authored May 31, 2024
2 parents b3e748c + bfd4651 commit 25a66ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/london_tfl/tfl_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


def get_destination(entry):
if 'towards' in entry:
if 'towards' in entry and len(entry['towards']) > 0:
return entry['towards']
if 'destinationName' in entry:
return entry['destinationName']
Expand Down

0 comments on commit 25a66ee

Please sign in to comment.