mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Sort discoveries by title on integration page (#25578)
This commit is contained in:
parent
81ba2db93a
commit
f563146165
@ -275,9 +275,15 @@ 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) =>
|
||||
ATTENTION_SOURCES.includes(flow.context.source)
|
||||
|
Loading…
x
Reference in New Issue
Block a user