WIP: Don't use reloading in async_update_reload_and_abort with update listeners

This commit is contained in:
G Johansson
2025-07-19 14:22:15 +00:00
parent 665991a3c1
commit 5643c965b3

View File

@ -3194,6 +3194,8 @@ class ConfigFlow(ConfigEntryBaseFlow):
options=options,
)
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)
if reason is UNDEFINED:
reason = "reauth_successful"