Skip to content

Commit 8402363

Browse files
authored
Fix fritzbox errors again (#34710)
1 parent 8ff1fc6 commit 8402363

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

homeassistant/components/fritzbox/config_flow.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ class FritzboxConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
4242
def __init__(self):
4343
"""Initialize flow."""
4444
self._host = None
45-
self._manufacturer = None
46-
self._model = None
4745
self._name = None
4846
self._password = None
4947
self._username = None
@@ -83,7 +81,7 @@ async def async_step_user(self, user_input=None):
8381
if user_input is not None:
8482

8583
for entry in self.hass.config_entries.async_entries(DOMAIN):
86-
if entry.data.get(CONF_HOST) == user_input[CONF_HOST]:
84+
if entry.data[CONF_HOST] == user_input[CONF_HOST]:
8785
if entry.data != user_input:
8886
self.hass.config_entries.async_update_entry(
8987
entry, data=user_input
@@ -117,9 +115,7 @@ async def async_step_ssdp(self, user_input):
117115
return self.async_abort(reason="already_in_progress")
118116

119117
for entry in self.hass.config_entries.async_entries(DOMAIN):
120-
if entry.data.get(CONF_HOST) == host:
121-
if entry.data != user_input:
122-
self.hass.config_entries.async_update_entry(entry, data=user_input)
118+
if entry.data[CONF_HOST] == host:
123119
return self.async_abort(reason="already_configured")
124120

125121
self._host = host

0 commit comments

Comments
 (0)