Skip to content
Snippets Groups Projects
Commit 9d1e881f authored by Fabian Affolter's avatar Fabian Affolter
Browse files

use string formatting

parent da68e4ab
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ class SwissPublicTransportSensor(Entity): ...@@ -77,7 +77,7 @@ class SwissPublicTransportSensor(Entity):
def __init__(self, data, journey): def __init__(self, data, journey):
self.data = data self.data = data
self._name = journey[2] + '-' + journey[3] self._name = '{}-{}'.format(journey[2], journey[3])
self.update() self.update()
@property @property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment