mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +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[] = [];
|
const yamlIntegrations: IntegrationListItem[] = [];
|
||||||
|
|
||||||
Object.entries(i).forEach(([domain, integration]) => {
|
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 (
|
if (
|
||||||
"integration_type" in integration &&
|
"integration_type" in integration &&
|
||||||
(integration.config_flow ||
|
(integration.config_flow ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user