Skip to content

Commit

Permalink
dlna_dmr: Allow for upnp attributes with None contents (#63892)
Browse files Browse the repository at this point in the history
  • Loading branch information
chishm committed Jan 11, 2022
1 parent 396825a commit dc71d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/dlna_dmr/config_flow.py
Expand Up @@ -380,8 +380,8 @@ def _is_ignored_device(discovery_info: ssdp.SsdpServiceInfo) -> bool:
# Special cases for devices with other discovery methods (e.g. mDNS), or
# that advertise multiple unrelated (sent in separate discovery packets)
# UPnP devices.
manufacturer = discovery_info.upnp.get(ssdp.ATTR_UPNP_MANUFACTURER, "").lower()
model = discovery_info.upnp.get(ssdp.ATTR_UPNP_MODEL_NAME, "").lower()
manufacturer = (discovery_info.upnp.get(ssdp.ATTR_UPNP_MANUFACTURER) or "").lower()
model = (discovery_info.upnp.get(ssdp.ATTR_UPNP_MODEL_NAME) or "").lower()

if manufacturer.startswith("xbmc") or model == "kodi":
# kodi
Expand Down

0 comments on commit dc71d59

Please sign in to comment.