Hide hardware integrations from the "add integration" dialog (#24345)

This commit is contained in:
puddly 2025-02-22 01:43:18 -05:00 committed by GitHub
parent edd37565a6
commit 5eec814988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ||