alexa_media_player: Integration no more loaded after reinstallation: `KeyError: 'public_url'`

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.

Alexa integration will be not loaded after installation

To Reproduce

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior

image

System details

  • Home-assistant (version): 2024.8.2
  • alexa_media (version from const.py or HA startup): 4.12.10
  • alexapy (version from pip show alexapy or HA startup): 1.28.2
  • Amazon 2FA is enabled (y/n).: yes

Logs Logger: homeassistant.setup Source: setup.py:416 First occurred: 7:28:08 AM (1 occurrences) Last logged: 7:28:08 AM

Error during setup of component alexa_media Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/setup.py”, line 416, in _async_setup_component result = await task ^^^^^^^^^^ File “/config/custom_components/alexa_media/init.py”, line 188, in async_setup CONF_PUBLIC_URL: account[CONF_PUBLIC_URL], ~~~~~~~^^^^^^^^^^^^^^^^^ KeyError: ‘public_url’

Who can help?

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 40

Most upvoted comments

To Reproduce

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior

image **System details**
  • Home-assistant (version): 2024.8.2
  • alexa_media (version from const.py or HA startup): 4.12.10
  • alexapy (version from pip show alexapy or HA startup): 1.28.2
  • Amazon 2FA is enabled (y/n).: yes

Had this as well after updating to 2024.8.2 and AMP to 4.12.10 (coming from 4.12.7.

I then deleted the integration to have a clean start and ended up in problem https://github.com/alandtse/alexa_media_player/issues/2469 that I wasn’t able to set up the integration anymore in total.