Skip to content

Picnic integration broken, fails to find 'address' #142018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RMHogervorst opened this issue Apr 1, 2025 · 2 comments
Closed

Picnic integration broken, fails to find 'address' #142018

RMHogervorst opened this issue Apr 1, 2025 · 2 comments

Comments

@RMHogervorst
Copy link

The problem

Picnic integration is failing for me, for a while now. So I tried to remove my current credentials and add again. But during log in I get an 'invalid authentication' error, but it seems that the problem is somewhere else.

Included is a part of debug logs.

2025-04-01 19:23:17.168 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 51, 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 73, in fetch_data
    ADDRESS: self._get_address(),
             ~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/components/picnic/coordinator.py", line 83, in _get_address
    address = self.picnic_api_client.get_user()["address"]
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'address'

What version of Home Assistant Core has the issue?

core-2025.3.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

picnic

Link to integration documentation on our website

https://www.home-assistant.io/integrations/picnic/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Apr 1, 2025

Hey there @corneyl, @codesalatdev, mind taking a look at this issue as it has been labeled with an integration (picnic) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of picnic can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign picnic Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


picnic documentation
picnic source
(message by IssueLinks)

@RMHogervorst
Copy link
Author

restarting home assistant actually fixed the problem, I could install and log in again.

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

No branches or pull requests

1 participant