From cb9e0c03d59c57c3e03fe323906e5ddd1500882c Mon Sep 17 00:00:00 2001 From: Thom Troy Date: Mon, 14 Jan 2019 09:51:37 +0000 Subject: [PATCH] fix logic error in dubln bus (#20075) --- homeassistant/components/sensor/dublin_bus_transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/dublin_bus_transport.py b/homeassistant/components/sensor/dublin_bus_transport.py index d47c471e90d..02527f1e333 100644 --- a/homeassistant/components/sensor/dublin_bus_transport.py +++ b/homeassistant/components/sensor/dublin_bus_transport.py @@ -92,7 +92,7 @@ class DublinPublicTransportSensor(Entity): """Return the state attributes.""" if self._times is not None: next_up = "None" - if len(self._times) >= 1: + if len(self._times) > 1: next_up = self._times[1][ATTR_ROUTE] + " in " next_up += self._times[1][ATTR_DUE_IN]