Use literal string interpolation in integrations B-D (f-strings) (#26378)

This commit is contained in:
Franck Nijhof authored and Pascal Vizeli committed 2019-09-03 17:09:59 +02:00
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