mirror of
https://github.com/home-assistant/core.git
synced 2025-05-05 14:39:16 +00:00
use string formatting
This commit is contained in:
parent
da68e4ab11
commit
9d1e881f12
@ -77,7 +77,7 @@ class SwissPublicTransportSensor(Entity):
|
||||
|
||||
def __init__(self, data, journey):
|
||||
self.data = data
|
||||
self._name = journey[2] + '-' + journey[3]
|
||||
self._name = '{}-{}'.format(journey[2], journey[3])
|
||||
self.update()
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user