mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
WIP: Don't use reloading in async_update_reload_and_abort with update listeners
This commit is contained in:
parent
ff9fb6228b
commit
663df913a5
@ -3194,6 +3194,8 @@ class ConfigFlow(ConfigEntryBaseFlow):
|
|||||||
options=options,
|
options=options,
|
||||||
)
|
)
|
||||||
if reload_even_if_entry_is_unchanged or result:
|
if reload_even_if_entry_is_unchanged or result:
|
||||||
|
if entry.update_listeners:
|
||||||
|
raise ValueError("Cannot update entry with update listeners")
|
||||||
self.hass.config_entries.async_schedule_reload(entry.entry_id)
|
self.hass.config_entries.async_schedule_reload(entry.entry_id)
|
||||||
if reason is UNDEFINED:
|
if reason is UNDEFINED:
|
||||||
reason = "reauth_successful"
|
reason = "reauth_successful"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user