I have an integration where the remote API users cookies in requests/responses. As my integration uses the default httpx AsyncClient, all instances (devices) of this integration share cookies and things go bad (the remote API believes they are the same).
What is the recommended way forward to make requests without cookies? httpx
has apparently deprecated specifying per request cookies. Should I create a new httpx.Client
for each instance using create_async_httpx_client
? I can see the REST component does this.