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 fea5c63bba
commit 139b2e9c01

View File

@@ -3196,6 +3196,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"