mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
@@ -499,7 +499,7 @@ def aiohttp_client(
|
||||
elif isinstance(__param, BaseTestServer):
|
||||
client = TestClient(__param, loop=loop, **kwargs)
|
||||
else:
|
||||
raise TypeError("Unknown argument type: %r" % type(__param))
|
||||
raise TypeError(f"Unknown argument type: {type(__param)!r}")
|
||||
|
||||
await client.start_server()
|
||||
clients.append(client)
|
||||
@@ -542,8 +542,8 @@ async def hass(
|
||||
else:
|
||||
exceptions.append(
|
||||
Exception(
|
||||
"Received exception handler without exception, but with message: %s"
|
||||
% context["message"]
|
||||
"Received exception handler without exception, "
|
||||
f"but with message: {context["message"]}"
|
||||
)
|
||||
)
|
||||
orig_exception_handler(loop, context)
|
||||
|
||||
Reference in New Issue
Block a user