1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

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

This commit is contained in:
Franck Nijhof
2019-09-03 17:09:59 +02:00
committed by Pascal Vizeli
parent 105461edb5
commit 6a24d893c8
52 changed files with 116 additions and 126 deletions

View File

@@ -82,7 +82,7 @@ class CmusDevice(MediaPlayerDevice):
if server:
self.cmus = remote.PyCmus(server=server, password=password, port=port)
auto_name = "cmus-{}".format(server)
auto_name = f"cmus-{server}"
else:
self.cmus = remote.PyCmus()
auto_name = "cmus-local"