Skip to content

Commit f474631

Browse files
escoandballoob
authored andcommitted
Fix fritzbox integration errors (#34639)
1 parent e757c47 commit f474631

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/fritzbox/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def async_step_user(self, user_input=None):
8383
if user_input is not None:
8484

8585
for entry in self.hass.config_entries.async_entries(DOMAIN):
86-
if entry.data[CONF_HOST] == user_input[CONF_HOST]:
86+
if entry.data.get(CONF_HOST) == user_input[CONF_HOST]:
8787
if entry.data != user_input:
8888
self.hass.config_entries.async_update_entry(
8989
entry, data=user_input
@@ -117,7 +117,7 @@ async def async_step_ssdp(self, user_input):
117117
return self.async_abort(reason="already_in_progress")
118118

119119
for entry in self.hass.config_entries.async_entries(DOMAIN):
120-
if entry.data[CONF_HOST] == host:
120+
if entry.data.get(CONF_HOST) == host:
121121
if entry.data != user_input:
122122
self.hass.config_entries.async_update_entry(entry, data=user_input)
123123
return self.async_abort(reason="already_configured")

0 commit comments

Comments
 (0)