mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
Use new format for logging exceptions - api/proxy.py (#3187)
This commit is contained in:
parent
0afff9a9e2
commit
b83da5d89f
@ -122,10 +122,10 @@ class APIProxy(CoreSysAttributes):
|
||||
|
||||
if data.get("type") != "auth_required":
|
||||
# Invalid protocol
|
||||
_LOGGER.error(
|
||||
"Got unexpected response from Home Assistant WebSocket: %s", data
|
||||
raise APIError(
|
||||
f"Got unexpected response from Home Assistant WebSocket: {data}",
|
||||
_LOGGER.error,
|
||||
)
|
||||
raise APIError()
|
||||
|
||||
# Auth session
|
||||
await self.sys_homeassistant.api.ensure_access_token()
|
||||
|
Loading…
x
Reference in New Issue
Block a user