mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-30 04:58:05 +00:00
Use f-strings where possible (#1740)
This commit is contained in:
@@ -83,7 +83,7 @@ class APICoreDNS(CoreSysAttributes):
|
||||
version = body.get(ATTR_VERSION, self.sys_plugins.dns.latest_version)
|
||||
|
||||
if version == self.sys_plugins.dns.version:
|
||||
raise APIError("Version {} is already in use".format(version))
|
||||
raise APIError(f"Version {version} is already in use")
|
||||
await asyncio.shield(self.sys_plugins.dns.update(version))
|
||||
|
||||
@api_process_raw(CONTENT_TYPE_BINARY)
|
||||
|
||||
Reference in New Issue
Block a user