Skip to content

Issue identified : #49

@Kjelle1

Description

@Kjelle1

** Which country are you from **
Sweden

Describe the bug
API update?

Log file
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/librelink/init.py", line 41, in async_setup_entry
await api.async_login(username=username, password=password)
File "/config/custom_components/librelink/api.py", line 157, in async_login
self._account_id = response["data"]["user"]["id"]
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'id'

Screenshots

Additional context
The integration has worked as a charm for a long time and now it stopped working all of a sudden.
Maybe Libre have made a API update that crashed something?
Version 1.2.3
Installation method
Home Assistant OS
Core
2025.7.2
Supervisor
2025.07.1
Operating System
16.0
Frontend
20250702.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions