Use literal string interpolation in integrations R-S (f-strings) (#26392)
This commit is contained in:
1 parent
7203027cbf
commit
445c741b30
69 files changed
+129
-149
No files matched your search
@@ -84,7 +84,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
tv_name = discovery_info.get("name")
|
||||
model = discovery_info.get("model_name")
|
||||
host = discovery_info.get("host")
|
||||
name = "{} ({})".format(tv_name, model)
|
||||
name = f"{tv_name} ({model})"
|
||||
port = DEFAULT_PORT
|
||||
timeout = DEFAULT_TIMEOUT
|
||||
mac = None
|
||||
|
||||
Reference in new issue
Block a user