mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Use literal string interpolation in integrations H-J (f-strings) (#26380)
This commit is contained in:
committed by
Pascal Vizeli
parent
13bb2ea35a
commit
f9edec19ad
@@ -10,7 +10,7 @@ from .const import DATA_DISCOVERED_HOSTS, DOMAIN
|
||||
|
||||
def format_title(host: str) -> str:
|
||||
"""Format the title for config entries."""
|
||||
return "Controller ({})".format(host)
|
||||
return f"Controller ({host})"
|
||||
|
||||
|
||||
@config_entries.HANDLERS.register(DOMAIN)
|
||||
|
||||
Reference in New Issue
Block a user