From bfd46517e8bbe941609467daebacd8c3e5e94513 Mon Sep 17 00:00:00 2001 From: Mihail Morosan Date: Fri, 31 May 2024 12:59:27 +0100 Subject: [PATCH] Emergency fix --- custom_components/london_tfl/tfl_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/london_tfl/tfl_data.py b/custom_components/london_tfl/tfl_data.py index 6ddb8d5..e0a92a9 100644 --- a/custom_components/london_tfl/tfl_data.py +++ b/custom_components/london_tfl/tfl_data.py @@ -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']