Fix webOS TV SSDP discovery missing friendly name (#85917)

pull/86058/head
Shay Levy 2023-01-15 13:29:11 +02:00 committed by Paulus Schoutsen
parent a318576c4f
commit b459261ef2
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class FlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
host = urlparse(discovery_info.ssdp_location).hostname
assert host
self._host = host
self._name = discovery_info.upnp[ssdp.ATTR_UPNP_FRIENDLY_NAME]
self._name = discovery_info.upnp.get(ssdp.ATTR_UPNP_FRIENDLY_NAME, DEFAULT_NAME)
uuid = discovery_info.upnp[ssdp.ATTR_UPNP_UDN]
assert uuid