Skip to content
Open
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
4 changes: 2 additions & 2 deletions custom_components/immich/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ async def list_favorite_images(self) -> list[dict]:
async with aiohttp.ClientSession() as session:
url = urljoin(self.host, "/api/search/metadata")
headers = {"Accept": "application/json", _HEADER_API_KEY: self.api_key}
data = {"isFavorite": "true"}
payload = {"isFavorite": True}

async with session.post(url=url, headers=headers, data=data) as response:
async with session.post(url=url, headers=headers, json=payload) as response:
if response.status != 200:
raw_result = await response.text()
_LOGGER.error("Error from API: body=%s", raw_result)
Expand Down