oyvindwe / connectlife-ha

ConnectLife integration for Home Assistant
GNU General Public License v3.0
61 stars 23 forks source link

since Home assistant updates adding not working #160

Closed NorthernMunkey closed 7 hours ago

NorthernMunkey commented 7 hours ago

Core 2024.11.1 Supervisor 2024.11.3 since one of these updates the addins fails to load

Logger: homeassistant.config_entries Source: config_entries.py:635 First occurred: 11:49:26 AM (2 occurrences) Last logged: 2:04:09 PM

Error setting up entry ConnectLife (XXXXX@XXXXX.com) for connectlife Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/connectlife/init__.py", line 34, in async_setup_entry await api.login() File "/usr/local/lib/python3.12/site-packages/connectlife/api.py", line 66, in login await self._fetch_access_token() File "/usr/local/lib/python3.12/site-packages/connectlife/api.py", line 107, in _fetch_access_token await self._initial_access_token() File "/usr/local/lib/python3.12/site-packages/connectlife/api.py", line 125, in _initial_access_token login_token = body["sessionInfo"]["cookieValue"]


KeyError: 'cookieValue'
oyvindwe commented 7 hours ago

This is not caused by Home Assistant update. See #157 - fixed in 0.20.2 - but you need to login using the app to consent to the new terms.