Improve string formatting v6 (#33698)
This commit is contained in:
1 parent
d7e3b0b755
commit
eae21be5b9
43 files changed
+81
-87
No files matched your search
@@ -159,8 +159,8 @@ class NMBSLiveBoard(Entity):
|
||||
next_departure = liveboard["departures"]["departure"][0]
|
||||
|
||||
self._attrs = next_departure
|
||||
self._state = "Track {} - {}".format(
|
||||
next_departure["platform"], next_departure["station"]
|
||||
self._state = (
|
||||
f"Track {next_departure['platform']} - {next_departure['station']}"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user