Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'name' #3159

Open
1 task done
duhow opened this issue Nov 10, 2024 · 1 comment
Open
1 task done

AttributeError: 'NoneType' object has no attribute 'name' #3159

duhow opened this issue Nov 10, 2024 · 1 comment

Comments

@duhow
Copy link

duhow commented Nov 10, 2024

What version of Music Assistant has the issue?

2.4.0b2

What version of the Home Assistant Integration have you got installed?

2024.11.2

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

Error while setting up mass platform for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 365, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/mass/media_player.py", line 147, in async_setup_entry
    mass_players.append(MusicAssistantPlayer(mass, player.player_id))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mass/media_player.py", line 204, in __init__
    super().__init__(mass, player_id)
  File "/config/custom_components/mass/entity.py", line 34, in __init__
    manufacturer=self.player.device_info.manufacturer or provider.name,
                                                         ^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'

https://github.com/music-assistant/hass-music-assistant/blob/main/custom_components/mass/entity.py#L34

How to reproduce

N/A

Music Providers

N/A

Player Providers

N/A

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.11.0

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Alternative

@duhow duhow added the triage label Nov 10, 2024
@OzGav
Copy link
Contributor

OzGav commented Nov 10, 2024

With the volume of requests for assistance on here, Discord and the HA forums we need people to provide the information requested in a concise manner. You are getting this standard response because you have not supplied the information requested in the troubleshooting docs or in the issue report template and we are unable to quickly pinpoint the problem. Please review and supply the requested information for a more timely response to your problem. Thanks for your understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants