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:
Erik Montnemery
2024-11-04 15:45:29 +01:00
committed by GitHub
parent 7691991a93
commit 4ac35d40cd
3 changed files with 16 additions and 2 deletions

View File

@@ -5729,6 +5729,14 @@ async def test_starting_config_flow_on_single_config_entry(
None,
{"type": data_entry_flow.FlowResultType.ABORT, "reason": "not_implemented"},
),
(
{"source": config_entries.SOURCE_ZEROCONF},
None,
{
"type": data_entry_flow.FlowResultType.ABORT,
"reason": "single_instance_allowed",
},
),
],
)
async def test_starting_config_flow_on_single_config_entry_2(