Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion supervisor/homeassistant/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async def connect_websocket(
self._access_token,
max_msg_size=max_msg_size,
)
except HomeAssistantAPIError:
except HomeAssistantAuthError:
self._access_token = None
if attempt == 2:
raise
Expand Down
6 changes: 3 additions & 3 deletions supervisor/homeassistant/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async def connect(
TimeoutError,
) as err:
await client.close()
raise HomeAssistantAPIError(
raise HomeAssistantWSConnectionError(
f"Unexpected error during WebSocket handshake: {err}"
) from err

Expand Down Expand Up @@ -234,7 +234,7 @@ async def connect_with_auth(
TimeoutError,
) as err:
await client.close()
raise HomeAssistantAPIError(
raise HomeAssistantWSConnectionError(
f"Unexpected error during WebSocket handshake: {err}"
) from err

Expand Down Expand Up @@ -309,7 +309,7 @@ async def _async_send_command(self, message: dict[str, Any]) -> None:
try:
await self._ensure_connected()
except HomeAssistantWSError as err:
_LOGGER.debug("Can't send WebSocket command: %s", err)
_LOGGER.warning("Can't send WebSocket command: %s", err)
return

# _ensure_connected guarantees self.client is set
Expand Down