Hide hardware integrations in brand sub-menu (#26252)

* Hide hardware integrations in brand sub-menu

* Filter before sort
This commit is contained in:
karwosts 2025-07-22 07:16:03 -07:00 committed by GitHub
parent 13868478f7
commit c13a80ce5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,6 +125,7 @@ class HaDomainIntegrations extends LitElement {
"integrations" in this.integration &&
this.integration.integrations
? Object.entries(this.integration.integrations)
.filter(([, val]) => val.integration_type !== "hardware")
.sort((a, b) => {
if (a[1].config_flow && !b[1].config_flow) {
return -1;