The integration could not be loaded, try to restart Home Assistant.
When the component is trying to start it throws the following error:
2025-09-04 17:51:19.526 INFO (MainThread) [homeassistant.setup] Setting up mass_queue
2025-09-04 17:51:19.526 ERROR (MainThread) [homeassistant.setup] Error during setup of component mass_queue: 'ConfigEntry' object has no attribute 'runtime_data'
File "/config/custom_components/mass_queue/__init__.py", line 51, in async_setup
File "/config/custom_components/mass_queue/actions.py", line 298, in setup_controller_and_actions
mass_client = get_music_assistant_client_boostrap(hass)
File "/config/custom_components/mass_queue/actions.py", line 260, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
2025-09-04 17:51:19.537 INFO (MainThread) [homeassistant.setup] Setup of domain mass_queue took 0.01 seconds
any ideas ?
Is the Music Assistant integration working fine for you?
On Thu, Sep 4, 2025, 5:58 PM Ron Luna @.***> wrote:
ronluna created an issue (droans/mass_queue#30) https://github.com/droans/mass_queue/issues/30
When the component is trying to start it throws the following error:
2025-09-04 17:51:19.526 INFO (MainThread) [homeassistant.setup] Setting up mass_queue 2025-09-04 17:51:19.526 ERROR (MainThread) [homeassistant.setup] Error during setup of component mass_queue: 'ConfigEntry' object has no attribute 'runtime_data' File "/config/custom_components/mass_queue/init.py", line 51, in async_setup File "/config/custom_components/mass_queue/actions.py", line 298, in setup_controller_and_actions mass_client = get_music_assistant_client_boostrap(hass) File "/config/custom_components/mass_queue/actions.py", line 260, in get_music_assistant_client_boostrap return config_entry.runtime_data.mass 2025-09-04 17:51:19.537 INFO (MainThread) [homeassistant.setup] Setup of domain mass_queue took 0.01 seconds
image.png (view on web) https://github.com/user-attachments/assets/37529200-83f9-4635-b432-1117958a4c44
any ideas ?
— Reply to this email directly, view it on GitHub https://github.com/droans/mass_queue/issues/30, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3LCMLRVQJGWO53AQVRF433RCYYZAVCNFSM6AAAAACFVKQQGCVHI2DSMVQWIX3LMV43ASLTON2WKOZTGM4DKNRQGEYDSNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Yes. All media_players coming from Music assistant are listed and are working fine. Although the only thing that might be different from a typical setup is that Music assistant is not running as an addon inside Home assistant . It's running on a seperate server on the same subnet.
Can you provide more information about your setup? I haven't seen the same issue but another user reported the same problem.
It sounds like Music Assistant is reporting that it's set up before it actually finishes.
Please try v0.4.3-dev when you get a chance.
Music assistant is running on the different machine running docker. it works just fine and Home assistant can connect to it no problem ... as well as Music assistant can connect to home assistant without any problems... All the players are using snapcast and are working fine. not sure what other information I can share.
By the way just tried v0.4.3-dev and ths is what the logs are showing:
2025-09-05 18:05:32.128 INFO (MainThread) [homeassistant.setup] Setting up mass_queue
2025-09-05 18:05:32.129 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (1/5)
2025-09-05 18:05:32.130 WARNING (MainThread) [py.warnings] /config/custom_components/mass_queue/actions.py:272: RuntimeWarning: coroutine 'sleep' was never awaited
2025-09-05 18:05:32.130 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (2/5)
2025-09-05 18:05:32.131 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (3/5)
2025-09-05 18:05:32.131 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (4/5)
2025-09-05 18:05:32.131 ERROR (MainThread) [homeassistant.setup] Error during setup of component mass_queue: Failed to set up Music Assistant Queue Actions after 5 attempts. Please validate that Music Assistant is properly set up.
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/__init__.py", line 51, in async_setup
File "/config/custom_components/mass_queue/actions.py", line 310, in setup_controller_and_actions
mass_client = get_music_assistant_client_boostrap(hass)
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 270, in get_music_assistant_client_boostrap
2025-09-05 18:08:15.602 ERROR (SyncWorker_0) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/mass/manifest.json: unexpected character: line 11 column 3 (char 378)
2025-09-05 18:08:15.606 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration mass_queue which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-09-05 18:08:25.863 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'smartthings', 'tuya_local', 'image_upload', 'openweathermap', 'stateful_scenes', 'timer', 'fpl', 'esphome', 'google', 'unifi', 'scheduler', 'shell_command', 'switch', 'unfoldedcircle', 'notify', 'sun', 'person', 'analytics', 'hardware', 'shelly', 'dlna_dmr', 'my', 'watchman', 'rhasspy', 'energy', 'wyoming', 'counter', 'lock', 'logbook', 'rest_command', 'hacs', 'ifttt', 'homekit', 'history', 'open_router', 'tesla_wall_connector', 'input_select', 'ibeacon', 'ios', 'browser_mod', 'zone', 'keymaster', 'input_number', 'zha_toolkit', 'speedtestdotnet', 'frigate', 'alarmo', 'openai_conversation', 'stream_assist', 'scene', 'coolmaster', 'squeezebox', 'input_datetime', 'schedule', 'cast', 'ingress', 'mqtt', 'lutron', 'system_health', 'mobile_app', 'input_button', 'automation', 'chime_tts', 'accuweather', 'met', 'vlc_telnet', 'androidtv', 'broadlink', 'homeassistant_alerts', 'zwave_js', 'helios2n', 'tag', 'qr_generator', 'fan', 'radio_browser', 'mass_queue', 'script', 'switch_as_x', 'music_assistant', 'application_credentials', 'webrtc', 'onkyo_ng', 'media_source', 'braviatv', 'apple_tv', 'econet', 'co2signal', 'generic', 'rachio', 'homekit_controller', 'input_text', 'go2rtc', 'ipmi', 'input_boolean', 'nut'}; already set up: {'conversation', 'dhcp', 'backup', 'assist_pipeline', 'http', 'binary_sensor', 'stream', 'bluetooth', 'system_log', 'sensor', 'frontend', 'zeroconf', 'logger', 'hassio', 'webhook', 'camera', 'ssdp', 'tts', 'recorder', 'network', 'usb', 'template', 'google_assistant', 'alexa', 'rest', 'cloud', 'websocket_api', 'config', 'homeassistant', 'group', 'media_player'}
2025-09-05 18:08:47.996 INFO (MainThread) [homeassistant.setup] Setting up mass_queue
2025-09-05 18:08:47.997 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (1/5)
2025-09-05 18:08:47.998 WARNING (MainThread) [py.warnings] /config/custom_components/mass_queue/actions.py:272: RuntimeWarning: coroutine 'sleep' was never awaited
2025-09-05 18:08:47.998 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (2/5)
2025-09-05 18:08:47.999 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (3/5)
2025-09-05 18:08:47.999 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (4/5)
2025-09-05 18:08:47.999 ERROR (MainThread) [homeassistant.setup] Error during setup of component mass_queue: Failed to set up Music Assistant Queue Actions after 5 attempts. Please validate that Music Assistant is properly set up.
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/__init__.py", line 51, in async_setup
File "/config/custom_components/mass_queue/actions.py", line 310, in setup_controller_and_actions
mass_client = get_music_assistant_client_boostrap(hass)
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 270, in get_music_assistant_client_boostrap
2025-09-05 18:08:48.008 INFO (MainThread) [homeassistant.setup] Setup of domain mass_queue took 0.01 seconds
It looks like you still are using the HACS mass integration. Try using the official integration and see if that helps out.
maybe still installed but the one that is being used is the official HA integration.
checking why mass old integration still around...
I completely remove the old mass directoy from custom_components folder just to make sure it was not interfering with mass_queue component. Although mass_queue was unable to start, logs below:
2025-09-05 18:32:31.770 INFO (MainThread) [homeassistant.setup] Setting up mass_queue
2025-09-05 18:32:31.771 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (1/5)
2025-09-05 18:32:31.772 WARNING (MainThread) [py.warnings] /config/custom_components/mass_queue/actions.py:272: RuntimeWarning: coroutine 'sleep' was never awaited
2025-09-05 18:32:31.772 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (2/5)
2025-09-05 18:32:31.772 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (3/5)
2025-09-05 18:32:31.772 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (4/5)
2025-09-05 18:32:31.773 ERROR (MainThread) [homeassistant.setup] Error during setup of component mass_queue: Failed to set up Music Assistant Queue Actions after 5 attempts. Please validate that Music Assistant is properly set up.
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/__init__.py", line 51, in async_setup
File "/config/custom_components/mass_queue/actions.py", line 310, in setup_controller_and_actions
mass_client = get_music_assistant_client_boostrap(hass)
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 270, in get_music_assistant_client_boostrap
2025-09-05 18:32:31.778 INFO (MainThread) [homeassistant.setup] Setup of domain mass_queue took 0.01 seconds
Try v0.4.3-dev-b2. I was calling async functions in a synchronous function. It should now properly delay and retry.
I'm not sure what changed but my assumption is that MA is reporting that it's finished setting up before it's actually ready. MA running on a different machine than HA sort of confirms this as that would add a bit of extra delay.
Just tries v0.4.3-dev-b2 but no luck. logs below:
2025-09-05 19:51:12.016 INFO (MainThread) [custom_components.hacs] <Integration droans/mass_queue> Content was extracted to /config/custom_components/mass_queue
2025-09-05 19:51:12.021 INFO (MainThread) [custom_components.hacs] <Integration droans/mass_queue> Installation steps completed
2025-09-05 19:51:12.021 INFO (MainThread) [custom_components.hacs] <Integration droans/mass_queue> Running post installation steps
2025-09-05 19:51:12.036 INFO (SyncWorker_14) [homeassistant.loader] Loaded mass_queue from custom_components.mass_queue
2025-09-05 19:51:12.036 WARNING (SyncWorker_14) [homeassistant.loader] We found a custom integration mass_queue which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-09-05 19:51:12.140 INFO (MainThread) [custom_components.hacs] <Integration droans/mass_queue> Post installation steps completed
2025-09-05 19:51:44.478 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration mass_queue which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-09-05 19:52:06.469 INFO (MainThread) [homeassistant.setup] Setting up mass_queue
2025-09-05 19:52:06.470 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (1/5)
2025-09-05 19:52:11.942 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (2/5)
2025-09-05 19:52:16.470 WARNING (MainThread) [homeassistant.setup] Setup of mass_queue is taking over 10 seconds.
2025-09-05 19:52:16.943 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (3/5)
2025-09-05 19:52:22.279 ERROR (MainThread) [custom_components.mass_queue] Failed to set up Music Assistant Queue Actions, retrying (4/5)
2025-09-05 19:52:27.281 ERROR (MainThread) [homeassistant.setup] Error during setup of component mass_queue: Failed to set up Music Assistant Queue Actions after 5 attempts. Please validate that Music Assistant is properly set up.
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/actions.py", line 265, in get_music_assistant_client_boostrap
return config_entry.runtime_data.mass
File "/config/custom_components/mass_queue/__init__.py", line 51, in async_setup
File "/config/custom_components/mass_queue/actions.py", line 310, in setup_controller_and_actions
mass_client = await get_music_assistant_client_boostrap(hass)
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 273, in get_music_assistant_client_boostrap
File "/config/custom_components/mass_queue/actions.py", line 270, in get_music_assistant_client_boostrap
2025-09-05 19:52:27.286 INFO (MainThread) [homeassistant.setup] Setup of domain mass_queue took 20.82 seconds
Hmm - this is stumping me a bit.
Are you able to successfully reload the integration if you wait for it to complete? Do you have more than one entry for Music Assistant, including any disabled?
I do have another music assistant instance that was disabled. after deleting it .mass_queue was able to finally get started. good catch. Thanks!
I have uploaded v0.5.0-b1 which supports multiple Music Assistant config entries. I will consider this resolved for now.