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

No media entity is created #64

Closed
JimboJones3101 opened this issue Jun 18, 2024 · 7 comments
Closed

No media entity is created #64

JimboJones3101 opened this issue Jun 18, 2024 · 7 comments
Labels
duplicate This issue or pull request already exists

Comments

@JimboJones3101
Copy link

Hi there,

seemingly I am suffering from the same issue as here.

I was using this component frequently the last weeks, when all of a sudden it stopped working. I checked HA didnt find nothing, redownloaded the component and reconfigured and figured out that my host is recognised. 2 Devices are recognised (seems correct as I have an Teufel S and Teufel M) but only 6 entities are created. Per device this is :

Powerstate
Softwareversion
Updateinfoversion
No media entity is created, no zone no nothing. I enabled logging and this is the error I'm getting when reloading the integration:

`Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:366
integration: Media player (documentation, issues)
First occurred: 08:30:20 (1 occurrences)
Last logged: 08:30:20

Error while setting up teufel_raumfeld platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/teufel_raumfeld/media_player.py", line 148, in async_setup_entry
entity_registry = hass.helpers.entity_registry.async_get(hass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: async_get() takes 1 positional argument but 2 were given
`

I tried to reproduce the solution but the code seems fixed from back in the days, furthermore the errormessage is different this time.

anybody an idea of how to fix this?

thanks in advance

@4711Raven
Copy link

I noticed the same issue after update to Homassistant core 2024.6 with 2024.5.x all was working fine. I am running HA on a VM and have reverted to version 2024.5.

@greentux
Copy link

But this cant be the solution...

@zwerg1395
Copy link

Hi there,

seemingly I am suffering from the same issue as here.

I was using this component frequently the last weeks, when all of a sudden it stopped working. I checked HA didnt find nothing, redownloaded the component and reconfigured and figured out that my host is recognised. 2 Devices are recognised (seems correct as I have an Teufel S and Teufel M) but only 6 entities are created. Per device this is :

Powerstate Softwareversion Updateinfoversion No media entity is created, no zone no nothing. I enabled logging and this is the error I'm getting when reloading the integration:

`Logger: homeassistant.components.media_player Source: helpers/entity_platform.py:366 integration: Media player (documentation, issues) First occurred: 08:30:20 (1 occurrences) Last logged: 08:30:20

Error while setting up teufel_raumfeld platform for media_player Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/teufel_raumfeld/media_player.py", line 148, in async_setup_entry entity_registry = hass.helpers.entity_registry.async_get(hass) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: async_get() takes 1 positional argument but 2 were given `

I tried to reproduce the solution but the code seems fixed from back in the days, furthermore the errormessage is different this time.

anybody an idea of how to fix this?

thanks in advance

No that is something else , the issue here seems to be that the home assistant team has already started to phase out the function used and the new way to call the registry needs to be implemented.Saw the same error with other integrations that use this function.

@cogelito
Copy link

and the new way to call the registry needs to be implemented

Is that something we could change ourselves in one of the .py files or does it need action from the developer?
(Sorry, in case that this is a dumb question, I‘m just an autodidact trying to learn)

@holli73
Copy link

holli73 commented Jun 27, 2024

as i was using this as well and tried a lot to get it running - no success - i found a real cool HA intergration -> https://music-assistant.io/integration/ - i use this now and it works great with the RaumFeld speakers - i used the UPnP/DLNA Provider and the HA integration is really good and on my node-red workflows i only needed to change the entity id's...
these are all my RaumFeld Devices:
image
and if something is playing it has a real good interface - now i can stream everything from HA to the speakers
image

@klausw01
Copy link

and the new way to call the registry needs to be implemented

Is that something we could change ourselves in one of the .py files or does it need action from the developer? (Sorry, in case that this is a dumb question, I‘m just an autodidact trying to learn)

See my comment in the other thread.

#63 (comment)

Probably this may help you :)

@B5r1oJ0A9G B5r1oJ0A9G added the duplicate This issue or pull request already exists label Jul 7, 2024
@B5r1oJ0A9G
Copy link
Owner

Thanks for reporting this issue.!I assume this to be a duplicate of #63 and close it since the fix from @klausw01 has been merged and released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

8 participants