Conditionally include config flow and iot_class when relevant (#80756)
This commit is contained in:
parent
7714ce7235
commit
76dbd017a7
2 changed files with 165 additions and 246 deletions
File diff suppressed because it is too large
Load diff
|
@ -106,10 +106,13 @@ def _populate_brand_integrations(
|
|||
integration = integrations.get(domain)
|
||||
if not integration or integration.integration_type in ("entity", "system"):
|
||||
continue
|
||||
metadata = {}
|
||||
metadata["config_flow"] = integration.config_flow
|
||||
metadata["iot_class"] = integration.iot_class
|
||||
metadata["integration_type"] = integration.integration_type
|
||||
metadata = {
|
||||
"integration_type": integration.integration_type,
|
||||
}
|
||||
if integration.config_flow:
|
||||
metadata["config_flow"] = integration.config_flow
|
||||
if integration.iot_class:
|
||||
metadata["iot_class"] = integration.iot_class
|
||||
if integration.translated_name:
|
||||
integration_data["translated_name"].add(domain)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue