Skip to content

log message Config entry has already been setup #2987

@dpgh947

Description

@dpgh947

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
A couple of times in the past few days I have noticed these log messages. Everything seems to be still working ok when this happens. A reload of the integration stops the messages. I don't know what triggers it.

Logger: homeassistant.config_entries
Source: config_entries.py:749
First occurred: 12:29:59 (8 occurrences)
Last logged: 14:50:39

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

To Reproduce

can't reproduce at will

Expected behavior

Screenshots

System details

  • Home Assistant version: 2025.7.4
  • alexa_media version (from const.py or HA startup log): 5.7.5
  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log):
  • Is Amazon 2SV via Authenticator App (not 2SV OTP via SMS) enabled? <!---We will not debug login issues if unanswered---> (y/n): YES
  • Amazon Domain: uk

Debug Logs (alexa_media & alexapy)
Please provide logs.

nothing extra in debug log

Additional context

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