Skip to content

AttributeError: module 'homeassistant.components.ssdp' has no attribute 'ATTR_UPNP_FRIENDLY_NAME' #7

Description

@codersaur

I get this error every few hours...

2026-06-18 13:12:32.221 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (task: None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1521, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1584, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 482, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bravia_rest_api/config_flow.py", line 139, in async_step_ssdp
    discovery_info.upnp.get(ssdp.ATTR_UPNP_FRIENDLY_NAME, "Unknown"),
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'homeassistant.components.ssdp' has no attribute 'ATTR_UPNP_FRIENDLY_NAME'

Google AI says: _This warning occurs because a custom component or third-party integration is using outdated code to discover devices. Home Assistant recently restructured its SSDP helpers, shifting constants out of the component and into a new helper module. The exact path has been updated to: homeassistant.helpers.service_info.ssdp.ATTR_UPNP_FRIENDLY_NAME

So hopefully a quick fix...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions