add shortcut

This commit is contained in:
Fabian Affolter 2015-06-01 13:37:57 +02:00
parent a3cdb667ba
commit a50ed46950

View file

@ -109,7 +109,7 @@ class SwissPublicTransportSensor(Entity):
""" Gets the latest data from opendata.ch and updates the states. """
times = self.data.update()
if times is not None:
self._state = times[0] + ', ' + times[1]
self._state = ', '.join(times)
# pylint: disable=too-few-public-methods