Skip to content

issue with the homeassistant integration #27

Description

@rononline

Since yesterday the picnic integration in homeassistant is not working anymore, this is the error:

2025-02-18 09:24:07.934 ERROR (MainThread) [homeassistant.components.picnic.coordinator] Unexpected error fetching Picnic coordinator data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/picnic/coordinator.py", line 49, in _async_update_data
    data = await self.hass.async_add_executor_job(self.fetch_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/picnic/coordinator.py", line 71, in fetch_data
    ADDRESS: self._get_address(),
             ~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/components/picnic/coordinator.py", line 81, in _get_address
    address = self.picnic_api_client.get_user()["address"]
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'address'

see also: home-assistant/core#138735

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions