mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 14:31:13 +00:00
Use literal string interpolation in core (f-strings) (#26166)
This commit is contained in:
committed by
Paulus Schoutsen
parent
1efa29d6ff
commit
decf13b948
@@ -39,7 +39,7 @@ def run(args):
|
||||
hass = core.HomeAssistant(loop)
|
||||
hass.async_stop_track_tasks()
|
||||
runtime = loop.run_until_complete(bench(hass))
|
||||
print("Benchmark {} done in {}s".format(bench.__name__, runtime))
|
||||
print(f"Benchmark {bench.__name__} done in {runtime}s")
|
||||
loop.run_until_complete(hass.async_stop())
|
||||
loop.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user