B5r1oJ0A9G/teufel_raumfeld

No media entity is created

Closed this issue · 7 comments

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

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.

But this cant be the solution...

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.

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)

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

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 :)

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.