Music assistant cannot connect

Hi all,

I have a problem with the Music Assistant integration — it regularly disconnects for several days.

Logger: homeassistant.config_entries Zdroj: config_entries.py:749 První výskyt: 04:01:07 (2 výskyty) Naposledy logováno: 07:16:48 Error setting up entry Music Assistant for music_assistant 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/music_assistant/init.py”, line 127, in async_setup_entry await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 2569, in async_forward_entry_setups await integration.async_get_platforms(platforms) File “/usr/src/homeassistant/homeassistant/loader.py”, line 1168, in async_get_platforms import_future.result() ~~~~~~~~~~~~~~~~~~~~^^ File “/usr/src/homeassistant/homeassistant/loader.py”, line 1168, in async_get_platforms import_future.result() ~~~~~~~~~~~~~~~~~~~~^^ File “/usr/src/homeassistant/homeassistant/loader.py”, line 1156, in async_get_platforms platforms.update(self._load_platforms(platform_names)) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/loader.py”, line 1081, in _load_platforms platform_name: self._load_platform(platform_name) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/loader.py”, line 1255, in _load_platform cache[full_name] = self._import_platform(platform_name) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/loader.py”, line 1287, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/util/loop.py”, line 201, in protected_loop_func return func(*args, **kwargs) File “/usr/local/lib/python3.13/importlib/init.py”, line 88, in import_module return _bootstrap._gcd_import(name[level:], package, level) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “”, line 1387, in _gcd_import File “”, line 1360, in _find_and_load File “”, line 1331, in _find_and_load_unlocked File “”, line 935, in _load_unlocked File “”, line 1026, in exec_module File “”, line 488, in _call_with_frames_removed File “/usr/src/homeassistant/homeassistant/components/music_assistant/media_player.py”, line 11, in from music_assistant_models.constants import PLAYER_CONTROL_NONE ImportError: cannot import name ‘PLAYER_CONTROL_NONE’ from ‘music_assistant_models.constants’ (/usr/local/lib/python3.13/site-packages/music_assistant_models/constants.py)

Previously, I had two integrations installed: Music Assistant (CUSTOM) and Music Assistant. I noticed that the Music Assistant (CUSTOM) integration was moved into the core of Home Assistant. Following the recommended steps, I removed both integrations and renamed the “mass” folder to “mass_old”. There is no “music_assistant” folder in /config/custom_components/.

After that, I installed only the Music Assistant integration (the official one). However, after some time, the Music Assistant (CUSTOM) integration reappeared again, and the disconnection problem persists. The Music Assistant Server add-on was left unchanged.

I tried to analyze the issue using AI, and it suggested the same steps I already performed. Additionally, it advised me to remove the “Music Assistant (CUSTOM)” entry from .storage/core.config_entries, but I’m not sure if that’s safe.

What is the correct procedure to fix this issue?

Thanks

Hello Tomm206,

Instead of

so it can make stuff up and lie to you, try asking the developers and the community in their home. The people who support this and use it daily… Music assistant
The people that are watching that thread are all either interested. users of, or authors of Music Assistant.
They are likely your best resource.
Also there is a Discord: Music Assistant

1 Like

Unfortunately, no answer here, but I think that I have found the solution.

  1. I deleted both integrations (the old CUSTOMS and the new one)
  2. Then I restarted HA
  3. The correct integration appeared automatically in the Integrations
  4. I set the integration up
  5. I stopped the Music Assistant server (add-on)
  6. Then I restarted HA again
  7. Finally, I launched the Music Assistant server again