Sort discoveries by title on integration page (#25578)

This commit is contained in:
Paulus Schoutsen 2025-05-23 11:33:47 -04:00 committed by GitHub
parent 81ba2db93a
commit f563146165
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -275,8 +275,14 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
this.configEntriesInProgress
);
const discoveryFlows = configEntriesInProgress.filter(
(flow) => !ATTENTION_SOURCES.includes(flow.context.source)
const discoveryFlows = configEntriesInProgress
.filter((flow) => !ATTENTION_SOURCES.includes(flow.context.source))
.sort((a, b) =>
caseInsensitiveStringCompare(
a.localized_title || "zzz",
b.localized_title || "zzz",
this.hass.locale.language
)
);
const attentionFlows = configEntriesInProgress.filter((flow) =>