mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Hide hardware integrations from the "add integration" dialog (#24345)
This commit is contained in:
parent
edd37565a6
commit
5eec814988
@ -185,6 +185,14 @@ class AddIntegrationDialog extends LitElement {
|
||||
const yamlIntegrations: IntegrationListItem[] = [];
|
||||
|
||||
Object.entries(i).forEach(([domain, integration]) => {
|
||||
if (
|
||||
"integration_type" in integration &&
|
||||
integration.integration_type === "hardware"
|
||||
) {
|
||||
// Ignore hardware integrations, they cannot be added via UI
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
"integration_type" in integration &&
|
||||
(integration.config_flow ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user