diff --git a/findmy/reports/account.py b/findmy/reports/account.py index d7bc2d0..e23a1b6 100644 --- a/findmy/reports/account.py +++ b/findmy/reports/account.py @@ -737,7 +737,7 @@ class AsyncAppleAccount(BaseAppleAccount): r = await self._http.request( method, url, - json=data or {}, + json=data, headers=headers, ) if not r.ok: diff --git a/findmy/util/http.py b/findmy/util/http.py index fb87325..0c941e7 100644 --- a/findmy/util/http.py +++ b/findmy/util/http.py @@ -15,7 +15,7 @@ logging.getLogger(__name__) class _HttpRequestOptions(TypedDict, total=False): - json: dict[str, Any] + json: dict[str, Any] | None headers: dict[str, str] auth: tuple[str, str] | BasicAuth data: bytes