mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix webOS TV SSDP discovery missing friendly name (#85917)
This commit is contained in:
parent
64ee0cf627
commit
508b93c17f
@ -116,7 +116,7 @@ class FlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
host = urlparse(discovery_info.ssdp_location).hostname
|
host = urlparse(discovery_info.ssdp_location).hostname
|
||||||
assert host
|
assert host
|
||||||
self._host = 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]
|
uuid = discovery_info.upnp[ssdp.ATTR_UPNP_UDN]
|
||||||
assert uuid
|
assert uuid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user