Use literal string interpolation in core (f-strings) (#26166)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-08-23 09:53:33 -07:00
1 parent 1efa29d6ff
commit decf13b948
67 files changed
+180 -246

No files matched your search

+2 -2
View File
@@ -240,7 +240,7 @@ async def async_prepare_setup_platform(
try:
platform = integration.get_platform(domain)
except ImportError as exc:
log_error("Platform not found ({}).".format(exc))
log_error(f"Platform not found ({exc}).")
return None
# Already loaded
@@ -253,7 +253,7 @@ async def async_prepare_setup_platform(
try:
component = integration.get_component()
except ImportError as exc:
log_error("Unable to import the component ({}).".format(exc))
log_error(f"Unable to import the component ({exc}).")
return None
if hasattr(component, "setup") or hasattr(component, "async_setup"):