Skip to content
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

ValueError Config entry already setup #2788

Open
starkillerOG opened this issue Jan 5, 2025 · 4 comments
Open

ValueError Config entry already setup #2788

starkillerOG opened this issue Jan 5, 2025 · 4 comments

Comments

@starkillerOG
Copy link

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.

Describe the bug

Media player state was not updating, got this error in the log.

Reloading the integration seems to have worked.

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

System details

  • Home Assistant version: HA 2025.1.0
  • alexa_media version (from const.py or HA startup log): v5.3.0
  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log):
  • Is Amazon 2FA/2SV enabled <!---We will not debug login issues if unanswered---> (y/n): yes
  • Amazon Domain:

Debug Logs (alexa_media & alexapy)
Please provide logs.

Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: January 4, 2025 at 13:02:31 (144 occurrences)
Last logged: 08:37:43

Error setting up entry Amazon Alexa for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/init.py", line 456, in async_setup_entry
return await hass.data[DATA_COMPONENT].async_setup_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 186, in async_setup_entry
raise ValueError(
...<2 lines>...
)
ValueError: Config entry Amazon Alexa (86fcb8f439ed4dc534508df67b76b566) for alexa_media.media_player has already been setup!

Additional context

@iculookn
Copy link

iculookn commented Jan 5, 2025

Also getting the same error. Everything SEEMS to be working.

ALEXA: 5.3.0
HA CORE: 2025.1.0

Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: 3:53:14 PM (1 occurrences)
Last logged: 3:53:14 PM

Error setting up entry [email protected] - amazon.com for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 456, in async_setup_entry
    return await hass.data[DATA_COMPONENT].async_setup_entry(entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 186, in async_setup_entry
    raise ValueError(
    ...<2 lines>...
    )
ValueError: Config entry [email protected] - amazon.com (01cece0ef1a1fd95f0b5a89b4f24bb98) for alexa_media.media_player has already been setup!

@Jeppedy
Copy link

Jeppedy commented Jan 7, 2025

Well, it's not a clean startup (and I can't call notify.alexa_media...)
image

Copy link

github-actions bot commented Mar 8, 2025

The issue has received no activity for 60 days and will be closed in a week.

@jcrowegitHu8
Copy link

Still getting same issue
ALEXA: 5.6.0
HA CORE: 2025.3.2

Logger: homeassistant.config_entries
Source: config_entries.py:753
First occurred: 12:31:29 PM (1 occurrences)
Last logged: 12:31:29 PM

Error setting up entry **************************@gmail.com - amazon.com for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 472, in async_setup_entry
    return await hass.data[DATA_COMPONENT].async_setup_entry(entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 182, in async_setup_entry
    raise ValueError(
    ...<2 lines>...
    )
ValueError: Config entry **************************@gmail.com - amazon.com (65c78e0bc3f68a949e4fc2cab9f8c7a9) for alexa_media.media_player has already been setup!

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

No branches or pull requests

4 participants