use string formatting
This commit is contained in:
parent
713a03ad89
commit
284dbff2d5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue