@@ -2233,18 +2233,16 @@ async def async_unload(self, entry_id: str, _lock: bool = True) -> bool:
2233
2233
return await entry .async_unload (self .hass )
2234
2234
2235
2235
@callback
2236
- def async_schedule_reload (
2237
- self , entry_id : str , * , cancel_reauth : bool = True
2238
- ) -> None :
2236
+ def async_schedule_reload (self , entry_id : str ) -> None :
2239
2237
"""Schedule a config entry to be reloaded."""
2240
2238
entry = self .async_get_known_entry (entry_id )
2241
2239
entry .async_cancel_retry_setup ()
2242
2240
self .hass .async_create_task (
2243
- self .async_reload (entry_id , cancel_reauth = cancel_reauth ),
2241
+ self .async_reload (entry_id ),
2244
2242
f"config entry reload { entry .title } { entry .domain } { entry .entry_id } " ,
2245
2243
)
2246
2244
2247
- async def async_reload (self , entry_id : str , * , cancel_reauth : bool = True ) -> bool :
2245
+ async def async_reload (self , entry_id : str ) -> bool :
2248
2246
"""Reload an entry.
2249
2247
2250
2248
When reloading from an integration is is preferable to
@@ -2263,9 +2261,8 @@ async def async_reload(self, entry_id: str, *, cancel_reauth: bool = True) -> bo
2263
2261
entry .async_cancel_retry_setup ()
2264
2262
2265
2263
# Abort any in-progress reauth flow and linked issues
2266
- if cancel_reauth :
2267
- _abort_reauth_flows (self .hass , entry .domain , entry_id )
2268
- _remove_reauth_issue (self .hass , entry .domain , entry_id )
2264
+ _abort_reauth_flows (self .hass , entry .domain , entry_id )
2265
+ _remove_reauth_issue (self .hass , entry .domain , entry_id )
2269
2266
2270
2267
if entry .domain not in self .hass .config .components :
2271
2268
# If the component is not loaded, just load it as
@@ -3266,9 +3263,7 @@ def async_update_reload_and_abort(
3266
3263
options = options ,
3267
3264
)
3268
3265
if reload_even_if_entry_is_unchanged or result :
3269
- self .hass .config_entries .async_schedule_reload (
3270
- entry .entry_id , cancel_reauth = self .source != SOURCE_REAUTH
3271
- )
3266
+ self .hass .config_entries .async_schedule_reload (entry .entry_id )
3272
3267
if reason is UNDEFINED :
3273
3268
reason = "reauth_successful"
3274
3269
if self .source == SOURCE_RECONFIGURE :
0 commit comments