mirror of
https://github.com/home-assistant/core.git
synced 2026-10-09 15:09:21 +01: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:
1 parent
3f6df28ef3
commit
e401a0da7f
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user