mass_queue icon indicating copy to clipboard operation
mass_queue copied to clipboard

AttributeError: 'NoneType' object has no attribute 'config_entry_id'

Open PersistentCloud opened this issue 9 months ago • 1 comments

Hello,

I want to setup mass_queue and Music Assistant Player Card but have the following issue:

2026-02-13 08:52:37.985 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140216260190720] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 278, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2817, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2860, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mass_queue/services.py", line 285, in get_recommendations
    actions = get_entity_actions_controller(hass, entity_id)
  File "/config/custom_components/mass_queue/utils.py", line 50, in get_entity_actions_controller
    mass_queue_entry = get_mass_queue_entry(hass, entity_id)
  File "/config/custom_components/mass_queue/utils.py", line 43, in get_mass_queue_entry
    mass_entry = get_mass_entry(hass, entity_id)
  File "/config/custom_components/mass_queue/utils.py", line 62, in get_mass_entry
    config_id = _get_mass_entity_config_entry_id(hass, entity_id)
  File "/config/custom_components/mass_queue/utils.py", line 69, in _get_mass_entity_config_entry_id
    return registry.async_get(entity_id).config_entry_id
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'config_entry_id'

I have the latest BETA of Music Assistant (2.8.0b13) running and the latest updates for HAOS and Core.

PersistentCloud avatar Feb 13 '26 08:02 PersistentCloud

The minimal configuration was wrong. I had to adjust it properly

PersistentCloud avatar Feb 13 '26 12:02 PersistentCloud