Skip to content

Commit

Permalink
Ensure dlna_dmr config flow title_placeholders items are [str, str] (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Oct 1, 2024
1 parent a3513b2 commit 448dd61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/dlna_dmr/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ipaddress import IPv6Address, ip_address
import logging
from pprint import pformat
from typing import Any, cast
from typing import TYPE_CHECKING, Any, cast
from urllib.parse import urlparse

from async_upnp_client.client import UpnpError
Expand Down Expand Up @@ -138,6 +138,9 @@ async def async_step_ssdp(
LOGGER.debug("async_step_ssdp: discovery_info %s", pformat(discovery_info))

await self._async_set_info_from_discovery(discovery_info)
if TYPE_CHECKING:
# _async_set_info_from_discovery unconditionally sets self._name
assert self._name is not None

if _is_ignored_device(discovery_info):
return self.async_abort(reason="alternative_integration")
Expand Down

0 comments on commit 448dd61

Please sign in to comment.