From 3b64db5f767aa2e632a53d8b33a72f6f08c89de0 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 26 Jun 2025 08:20:26 +0200 Subject: [PATCH] Set end date for when allowing unique id collisions in config entries (#147516) * Set end date for when allowing unique id collisions in config entries * Update test --- homeassistant/config_entries.py | 1 + tests/test_config_entries.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index ca3a78f8046..e76b7ae099f 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -1646,6 +1646,7 @@ class ConfigEntriesFlowManager( report_usage( "creates a config entry when another entry with the same unique ID " "exists", + breaks_in_ha_version="2026.3", core_behavior=ReportBehavior.LOG, core_integration_behavior=ReportBehavior.LOG, custom_integration_behavior=ReportBehavior.LOG, diff --git a/tests/test_config_entries.py b/tests/test_config_entries.py index 45bb956b7a1..dc893e4c5fd 100644 --- a/tests/test_config_entries.py +++ b/tests/test_config_entries.py @@ -8823,7 +8823,7 @@ async def test_create_entry_existing_unique_id( log_text = ( f"Detected that integration '{domain}' creates a config entry " - "when another entry with the same unique ID exists. Please " - "create a bug report at https:" + "when another entry with the same unique ID exists. This will stop " + "working in Home Assistant 2026.3, please create a bug report at https:" ) assert (log_text in caplog.text) == expected_log