@@ -8887,7 +8887,7 @@ async def test_state_cache_is_cleared_on_entry_disable(hass: HomeAssistant) -> N
88878887 "source" ,
88888888 [config_entries .SOURCE_REAUTH , config_entries .SOURCE_RECONFIGURE ],
88898889)
8890- async def test_create_entry_reauth_reconfigure (
8890+ async def test_create_entry_reauth_reconfigure_fails (
88918891 hass : HomeAssistant ,
88928892 source : str ,
88938893 original_unique_id : str | None ,
@@ -8937,25 +8937,9 @@ async def _async_step_confirm(self):
89378937
89388938 with (
89398939 mock_config_flow ("test" , TestFlow ),
8940- patch . object ( frame , "_REPORTED_INTEGRATIONS" , set () ),
8940+ pytest . raises ( HomeAssistantError ),
89418941 ):
8942- result = await getattr (entry , f"start_{ source } _flow" )(hass )
8943- await hass .async_block_till_done ()
8944- assert result ["type" ] is FlowResultType .CREATE_ENTRY
8945-
8946- entries = hass .config_entries .async_entries ("test" )
8947- assert len (entries ) == count
8948- if count == 1 :
8949- # Show that the previous entry got binned and recreated
8950- assert entries [0 ].entry_id != entry .entry_id
8951-
8952- assert (
8953- f"Detected that integration 'test' creates a new entry in a '{ source } ' flow, "
8954- "when it is expected to update an existing entry and abort. This will stop "
8955- "working in Home Assistant 2025.11, please create a bug report at "
8956- "https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+"
8957- "label%3A%22integration%3A+test%22"
8958- ) in caplog .text
8942+ await getattr (entry , f"start_{ source } _flow" )(hass )
89598943
89608944
89618945async def test_async_update_entry_unique_id_collision (
0 commit comments