Use literal string interpolation in integrations B-D (f-strings) (#26378)
This commit is contained in:
1 parent
105461edb5
commit
6a24d893c8
52 files changed
+116
-126
No files matched your search
@@ -47,7 +47,7 @@ class DeutscheBahnSensor(Entity):
|
||||
|
||||
def __init__(self, start, goal, offset, only_direct):
|
||||
"""Initialize the sensor."""
|
||||
self._name = "{} to {}".format(start, goal)
|
||||
self._name = f"{start} to {goal}"
|
||||
self.data = SchieneData(start, goal, offset, only_direct)
|
||||
self._state = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user