Revert "Don't create repairs asking user to remove duplicate flipr config entries" (#142647)

Revert "Don't create repairs asking user to remove duplicate flipr config ent…"

This reverts commit 536e686892.
This commit is contained in:
Erik Montnemery
2025-04-10 19:50:50 +02:00
committed by GitHub
parent d4dbd76a0a
commit 7cbcb21e80
2 changed files with 1 additions and 47 deletions

View File

@@ -2388,12 +2388,7 @@ class ConfigEntries:
if unique_id is not UNDEFINED and entry.unique_id != unique_id:
# Deprecated in 2024.11, should fail in 2025.11
if (
# flipr creates duplicates during migration, and asks users to
# remove the duplicate. We don't need warn about it here too.
# We should remove the special case for "flipr" in HA Core 2025.4,
# when the flipr migration period ends
entry.domain != "flipr"
and unique_id is not None
unique_id is not None
and self.async_entry_for_domain_unique_id(entry.domain, unique_id)
is not None
):
@@ -2760,12 +2755,6 @@ class ConfigEntries:
issues.add(issue.issue_id)
for domain, unique_ids in self._entries._domain_unique_id_index.items(): # noqa: SLF001
# flipr creates duplicates during migration, and asks users to
# remove the duplicate. We don't need warn about it here too.
# We should remove the special case for "flipr" in HA Core 2025.4,
# when the flipr migration period ends
if domain == "flipr":
continue
for unique_id, entries in unique_ids.items():
# We might mutate the list of entries, so we need a copy to not mess up
# the index