Remove hardware and fix raspberry pi brands in integrations.json (#80970)
This commit is contained in:
parent
a98c304db6
commit
98591cd4b6
5 changed files with 14 additions and 32 deletions
|
@ -104,7 +104,11 @@ def _populate_brand_integrations(
|
|||
brand_metadata.setdefault("integrations", {})
|
||||
for domain in sub_integrations:
|
||||
integration = integrations.get(domain)
|
||||
if not integration or integration.integration_type in ("entity", "system"):
|
||||
if not integration or integration.integration_type in (
|
||||
"entity",
|
||||
"hardware",
|
||||
"system",
|
||||
):
|
||||
continue
|
||||
metadata = {
|
||||
"integration_type": integration.integration_type,
|
||||
|
@ -131,7 +135,6 @@ def _generate_integrations(
|
|||
|
||||
result = {
|
||||
"integration": {},
|
||||
"hardware": {},
|
||||
"helper": {},
|
||||
"translated_name": set(),
|
||||
}
|
||||
|
@ -176,7 +179,7 @@ def _generate_integrations(
|
|||
result["integration"][domain] = metadata
|
||||
else: # integration
|
||||
integration = integrations[domain]
|
||||
if integration.integration_type in ("entity", "system"):
|
||||
if integration.integration_type in ("entity", "system", "hardware"):
|
||||
continue
|
||||
|
||||
if integration.translated_name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue