Skip to content

Commit c5c4cf0

Browse files
Fix double reloading in axis (home-assistant#155144)
1 parent 68c38ac commit c5c4cf0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

homeassistant/components/axis/config_flow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ async def async_step_user(
109109

110110
if self.source == SOURCE_REAUTH:
111111
self._abort_if_unique_id_mismatch()
112-
return self.async_update_reload_and_abort(
112+
return self.async_update_and_abort(
113113
self._get_reauth_entry(), data_updates=config
114114
)
115115
if self.source == SOURCE_RECONFIGURE:
116116
self._abort_if_unique_id_mismatch()
117-
return self.async_update_reload_and_abort(
117+
return self.async_update_and_abort(
118118
self._get_reconfigure_entry(), data_updates=config
119119
)
120120
self._abort_if_unique_id_configured()
@@ -248,7 +248,7 @@ async def _process_discovered_device(
248248
await self.async_set_unique_id(discovery_info[CONF_MAC])
249249

250250
self._abort_if_unique_id_configured(
251-
updates={CONF_HOST: discovery_info[CONF_HOST]}
251+
updates={CONF_HOST: discovery_info[CONF_HOST]}, reload_on_update=False
252252
)
253253

254254
self.context.update(

0 commit comments

Comments
 (0)