Skip to content

Error: Failed setup, will retry: 'devices' #146658

@Canis-L-Sapien

Description

@Canis-L-Sapien

The problem

After sucessfully configuring authentication with the Alexa Devices integration, the integration fails to start.

Image

What version of Home Assistant Core has the issue?

core-2025.6.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Alexa Devices

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

2025-06-12 16:55:01.431 DEBUG (MainThread) [aioamazondevices] Found previous login data, loading serial number
2025-06-12 16:55:01.431 DEBUG (MainThread) [aioamazondevices] Logging-in for ***@****.*** with stored data
2025-06-12 16:55:01.431 DEBUG (MainThread) [aioamazondevices] Creating HTTP session (aiohttp)
2025-06-12 16:55:01.432 DEBUG (MainThread) [aioamazondevices] GET request: https://alexa.amazon.co.uk/api/devices-v2/device with payload None [json=False]
2025-06-12 16:55:01.581 DEBUG (MainThread) [aioamazondevices] Cookies from headers: {'csrf': '*******'}
2025-06-12 16:55:01.581 DEBUG (MainThread) [aioamazondevices] Response 200 for url https://alexa.amazon.co.uk/api/devices-v2/device with content type: application/json
2025-06-12 16:55:01.583 DEBUG (MainThread) [aioamazondevices] Response URL: https://alexa.amazon.co.uk/api/devices-v2/device
2025-06-12 16:55:01.588 DEBUG (MainThread) [aioamazondevices] Response code: |200|
2025-06-12 16:45:19.395 ERROR (MainThread) [homeassistant.components.alexa_devices] Unexpected error fetching ***@****.*** data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/alexa_devices/coordinator.py", line 54, in _async_update_data
    return await self.api.get_devices_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aioamazondevices/api.py", line 583, in get_devices_data
    devices_node = device[NODE_DEVICES]
                   ~~~~~~^^^^^^^^^^^^^^
KeyError: 'devices'

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions