Integration Music Assistant does not start: "Error setting up entry Music Assistant for mass"

The configuration wizzard for Music Assistant (downloaded form HACS on 27-10-2022 with system restart) ends with a success message.

I have selected Spotify and Tune-in and double-checked that I used the usernames for both providers. I use the right password for Spotify. The wizard does not ask for the Tune-in password.

I kept the default suggestion for ‘hide source players HA interface’ and 'Make new players for MASS"
The integration card shows a badget “Configuration failed”. A cache refresh or a system restart after instlling the integration did not solve the problem
mass-error

Who is able to help? I couldn’t find anything on the community Forum or MASS GitHub repo from @marcelveldt

Clicking the error message in the log shows a popup with below text. Especially the last row is interesting: KeyError: ha_version I upgraded to HAOS v9.3 earlier that day (coming form HOAS v9.2)

Logger: homeassistant.config_entries
Source: custom_components/mass/__init__.py:119
Integration: Music Assistant (documentation, issues)
First occurred: 17:34:34 (1 occurrences)
Last logged: 17:34:34

Error setting up entry Music Assistant for mass
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/mass/__init__.py", line 119, in async_setup_entry
    f"with Home Assistant version {manifest['ha_version']} (or higher)."
KeyError: 'ha_version'

I use:

  • Ikea sonos speakers / players
  • Yahama MusicCast integration with a Yamaha receiver RX-V4A
  • Google Assistant mini

Home Assistant system:

  • Home Assistant Operating system 9.3 (HAOS) / Generic x86-64 machine (NUC)
  • Home Assistant 2022.10.5
  • Supervisor 2022.10.0
  • Operating System 9.3
  • Frontend-versie: 20221010.0 - latest

Same for me

me too, sme issue

Did you read the release notes?
It state that the newest version only work with HA 2022.11 and you should not try to use it with 2022.10.

1 Like

From here

1 Like

Thank you soooo much for your help @WallyR and @123!

I upgraded to:
Home Assistant 2022.11.0b1
Supervisor 2022.10.2
Operating System 9.3
Frontend-versie: 20221027.0 - latest

I did not have to reinstall the Music Assistant Integration, it was fully functioning after the upgrade.

Music Assistant is awesome! I am going to buy someone coffee!

My mistake, and not the first time :frowning:

I’m having the same problem, and i’m running latest version of HA. I installed the Beta, and everythings worked, but i had made some bad choices regarding local folders and shares, and i had some problems, so i chose to uninstall and reinstall. The problem started after i uninstalled MASS first as integration, and thereafter from HACS. When i tried to reinstall it, i may have accidentally have installed the “non-beta” version, though i’m pretty sure it had the name “2023.6.0b0” when downloading, i do remember that when i reinstalled, i didn’t need to choose “show beta” and so on, so…

After reinstalling i cannot get the integration to work from HA, and eventhou i removed it from HACS, the music server is still running on port 8095.

Is there a way to verify the version running? The option for TuneIn is not available, which it was earlier, som maybe thats and indication of the version.

The thing is, how do i uninstall/remove current version, and reinstall it?

I think i’m running “supervisor” version, i installed HA from an image to Hyper-V, and i have the CLI console on it…