mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Fix KeyError in dlna_dmr SSDP config flow when checking existing config entries (#118549)
Fix KeyError checking existing dlna_dmr config entries
This commit is contained in:
parent
3f6df28ef3
commit
e401a0da7f
@ -149,7 +149,7 @@ class DlnaDmrFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
# case the device doesn't have a static and unique UDN (breaking the
|
||||
# UPnP spec).
|
||||
for entry in self._async_current_entries(include_ignore=True):
|
||||
if self._location == entry.data[CONF_URL]:
|
||||
if self._location == entry.data.get(CONF_URL):
|
||||
return self.async_abort(reason="already_configured")
|
||||
if self._mac and self._mac == entry.data.get(CONF_MAC):
|
||||
return self.async_abort(reason="already_configured")
|
||||
|
Loading…
x
Reference in New Issue
Block a user