home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.82k stars 29.53k forks source link

Ovo Energy integration error #83618

Closed pietrouk closed 1 year ago

pietrouk commented 1 year ago

The problem

Since latest update, Ovo Energy integration has stopped working

Version: Home Assistant 2022.12.0 Supervisor 2022.11.2 Operating System 9.3 Frontend 20221207.0 - latest

Error: Logger: homeassistant.config_entries Source: components/ovo_energy/init.py:40 First occurred: 8 December 2022 at 15:24:02 (1 occurrences) Last logged: 8 December 2022 at 15:24:02

Error setting up entry Gas & Electricity for ovo_energy Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 372, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/ovo_energy/init.py", line 40, in async_setup_entry entry.data[CONF_ACCOUNT], KeyError: 'account'

What version of Home Assistant Core has the issue?

2022.12.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

ovo_energy

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/ovo_energy/__init__.py:40
First occurred: 8 December 2022 at 15:24:02 (1 occurrences)
Last logged: 8 December 2022 at 15:24:02

Error setting up entry Gas & Electricity for ovo_energy
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 372, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/ovo_energy/__init__.py", line 40, in async_setup_entry
    entry.data[CONF_ACCOUNT],
KeyError: 'account'

Additional information

No response

home-assistant[bot] commented 1 year ago

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

Code owner commands Code owners of `ovo_energy` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign ovo_energy` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


ovo_energy documentation ovo_energy source (message by IssueLinks)

timmo001 commented 1 year ago

This is a bug caused from a recent change. A workaround for this issue is to reconfigure the integration

darynwilkinson commented 1 year ago

This is a bug caused from a recent change. A workaround for this issue is to reconfigure the integration

You mean delete the integration and reconfigure it from there?

pietrouk commented 1 year ago

Thank you @timmo001 Yes @darynwilkinson deleting and reconfiguring works well. It also keeps all the historical data points

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.