Skip to content

Commit

Permalink
Pass in the data parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
dermotduffy committed Jun 29, 2022
1 parent 0259c74 commit 8bacf6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/frigate/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ async def api_wrapper(
async with async_timeout.timeout(TIMEOUT):
func = getattr(self._session, method)
if func:
response = await func(url, headers=headers, raise_for_status=True)
response = await func(
url, headers=headers, raise_for_status=True, json=data
)
if decode_json:
return await response.json()
return await response.text()
Expand Down

0 comments on commit 8bacf6a

Please sign in to comment.