mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 10:48:01 +02:00
Fix create flow logic for single config entry integrations (#129807)
* Fix create flow logic for single config entry integrations * Adjust MQTT test
This commit is contained in:
@ -1278,7 +1278,13 @@ class ConfigEntriesFlowManager(
|
||||
# a single config entry, but which already has an entry
|
||||
if (
|
||||
source not in {SOURCE_IGNORE, SOURCE_REAUTH, SOURCE_RECONFIGURE}
|
||||
and self.config_entries.async_has_entries(handler, include_ignore=False)
|
||||
and (
|
||||
self.config_entries.async_has_entries(handler, include_ignore=False)
|
||||
or (
|
||||
self.config_entries.async_has_entries(handler, include_ignore=True)
|
||||
and source != SOURCE_USER
|
||||
)
|
||||
)
|
||||
and await _support_single_config_entry_only(self.hass, handler)
|
||||
):
|
||||
return ConfigFlowResult(
|
||||
|
Reference in New Issue
Block a user