mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Update string formatting to use f-string on core codebase (#125988)
* Update string formatting to use f-string on core codebase * Small change given review feedback
This commit is contained in:
@ -57,7 +57,9 @@ def main():
|
||||
)
|
||||
|
||||
for key in sorted(msg):
|
||||
print("\n{}\n - {}".format(key, "\n - ".join(msg[key])))
|
||||
print(f"\n{key}")
|
||||
for val in msg[key]:
|
||||
print(f" - {val}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user