File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
homeassistant/components/fritzbox Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments