Skip to content

Commit 174b0f7

Browse files
Use async_update_and_abort in mqtt (home-assistant#155140)
1 parent 807edc9 commit 174b0f7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

homeassistant/components/mqtt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ async def _async_config_entry_updated(hass: HomeAssistant, entry: ConfigEntry) -
248248
249249
Causes for this is config entry options changing.
250250
"""
251-
await hass.config_entries.async_reload(entry.entry_id)
251+
hass.config_entries.async_schedule_reload(entry.entry_id)
252252

253253

254254
@callback

homeassistant/components/mqtt/config_flow.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3815,9 +3815,7 @@ async def async_step_reauth_confirm(
38153815
try_connection,
38163816
new_entry_data,
38173817
):
3818-
return self.async_update_reload_and_abort(
3819-
reauth_entry, data=new_entry_data
3820-
)
3818+
return self.async_update_and_abort(reauth_entry, data=new_entry_data)
38213819

38223820
errors["base"] = "invalid_auth"
38233821

@@ -3863,7 +3861,7 @@ async def async_step_broker(
38633861

38643862
if can_connect:
38653863
if is_reconfigure:
3866-
return self.async_update_reload_and_abort(
3864+
return self.async_update_and_abort(
38673865
reconfigure_entry,
38683866
data=validated_user_input,
38693867
)

0 commit comments

Comments
 (0)