From b75ce4f1b2efde2152b8960e5edf090e0916f807 Mon Sep 17 00:00:00 2001 From: Michael Hertig Date: Wed, 16 Aug 2017 21:28:51 +0200 Subject: [PATCH] Fix #9010 - Swiss Public Transportation shows departure time in the past (#9011) --- homeassistant/components/sensor/swiss_public_transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/swiss_public_transport.py b/homeassistant/components/sensor/swiss_public_transport.py index aa0be36b075..0febd8c95bc 100644 --- a/homeassistant/components/sensor/swiss_public_transport.py +++ b/homeassistant/components/sensor/swiss_public_transport.py @@ -136,7 +136,7 @@ class PublicTransportData(object): 'fields[]=connections/from/departureTimestamp/&' + 'fields[]=connections/', timeout=10) - connections = response.json()['connections'][:2] + connections = response.json()['connections'][1:3] try: self.times = [