home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.07k stars 29.73k forks source link

DLNA Digital Media Server integration Issue Failed to set up #71890

Closed theshop35 closed 2 years ago

theshop35 commented 2 years ago

The problem

get this message on integration page Failed to set up Check the logs

What version of Home Assistant Core has the issue?

2022.5.4

What was the last working version of Home Assistant Core?

2022.4.7

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

https://www.home-assistant.io/integrations/dlna_dms

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/dlna_dms/dms.py:309
First occurred: 12:01:20 PM (1 occurrences)
Last logged: 12:01:20 PM

Error setting up entry WDMyCloud for dlna_dms
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/dlna_dms/__init__.py", line 28, in async_setup_entry
    return await get_domain_data(hass).async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/components/dlna_dms/dms.py", line 79, in async_setup_entry
    await device.async_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/dlna_dms/dms.py", line 194, in async_added_to_hass
    await self.device_connect()
  File "/usr/src/homeassistant/homeassistant/components/dlna_dms/dms.py", line 309, in device_connect
    await self._device.async_update()
  File "/usr/local/lib/python3.9/site-packages/async_upnp_client/profiles/dlna.py", line 1305, in async_update
    await self._async_poll_state_variables(
  File "/usr/local/lib/python3.9/site-packages/async_upnp_client/profiles/profile.py", line 434, in _async_poll_state_variables
    action = service.action(action_name)
  File "/usr/local/lib/python3.9/site-packages/async_upnp_client/client.py", line 388, in action
    return self.actions[name]
KeyError: 'GetSearchCapabilities'

Additional information

Tried reinstalling the integration but same error.

probot-home-assistant[bot] commented 2 years ago

dlna_dms documentation dlna_dms source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @chishm, mind taking a look at this issue as it has been labeled with an integration (dlna_dms) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

chishm commented 2 years ago

Thank you for the bug report. This looks related to #70611 and #71306 in the dlna_dmr integration. I think it will be solved by https://github.com/StevenLooman/async_upnp_client/pull/137.