From 139b2e9c01065d05414db83d4750b4cc16ccbb61 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 19 Jul 2025 14:22:15 +0000 Subject: [PATCH] WIP: Don't use reloading in async_update_reload_and_abort with update listeners --- homeassistant/config_entries.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index da8e73d9566..712db1940e8 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -3196,6 +3196,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"