Use literal string interpolation in integrations E-G (f-strings) (#26379)
This commit is contained in:
1 parent
6a24d893c8
commit
fa79ef1220
45 files changed
+87
-92
No files matched your search
@@ -38,7 +38,7 @@ class GttSensor(Entity):
|
||||
"""Initialize the Gtt sensor."""
|
||||
self.data = GttData(stop, bus_name)
|
||||
self._state = None
|
||||
self._name = "Stop {}".format(stop)
|
||||
self._name = f"Stop {stop}"
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
||||
Reference in new issue
Block a user