1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Use async_update_and_abort in mqtt (#155140)

This commit is contained in:
G Johansson
2025-10-25 14:41:13 +02:00
committed by GitHub
parent 807edc9f47
commit 174b0f7c01
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ async def _async_config_entry_updated(hass: HomeAssistant, entry: ConfigEntry) -
Causes for this is config entry options changing.
"""
await hass.config_entries.async_reload(entry.entry_id)
hass.config_entries.async_schedule_reload(entry.entry_id)
@callback
+2 -4
View File
@@ -3815,9 +3815,7 @@ class FlowHandler(ConfigFlow, domain=DOMAIN):
try_connection,
new_entry_data,
):
return self.async_update_reload_and_abort(
reauth_entry, data=new_entry_data
)
return self.async_update_and_abort(reauth_entry, data=new_entry_data)
errors["base"] = "invalid_auth"
@@ -3863,7 +3861,7 @@ class FlowHandler(ConfigFlow, domain=DOMAIN):
if can_connect:
if is_reconfigure:
return self.async_update_reload_and_abort(
return self.async_update_and_abort(
reconfigure_entry,
data=validated_user_input,
)