Remove update listener error for now

This commit is contained in:
G Johansson
2025-06-21 16:22:38 +00:00
parent dd20349359
commit 2cb6099b6d

View File

@@ -3180,15 +3180,7 @@ class ConfigFlow(ConfigEntryBaseFlow):
:param reload_even_if_entry_is_unchanged: set this to `False` if the entry :param reload_even_if_entry_is_unchanged: set this to `False` if the entry
should not be reloaded if it is unchanged should not be reloaded if it is unchanged
Using this method in combination with `update_listeners` is not supported.
If the entry has `update_listeners`, this method will raise a ValueError.
""" """
if entry.update_listeners:
raise ValueError(
"Using async_update_reload_and_abort in combination with "
"update_listeners is not supported"
)
if data_updates is not UNDEFINED: if data_updates is not UNDEFINED:
if data is not UNDEFINED: if data is not UNDEFINED:
raise ValueError("Cannot set both data and data_updates") raise ValueError("Cannot set both data and data_updates")