1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 14:08:21 +00:00

Make sure the config_flow key is set for brands (#82038)

Fixes https://github.com/home-assistant/frontend/issues/14376
This commit is contained in:
J. Nick Koston
2022-11-15 11:27:59 -06:00
committed by GitHub
parent af9ac9022b
commit f035223599
2 changed files with 88 additions and 2 deletions

View File

@@ -102,8 +102,9 @@ def _populate_brand_integrations(
metadata = {
"integration_type": integration.integration_type,
}
if integration.config_flow:
metadata["config_flow"] = integration.config_flow
# Always set the config_flow key to avoid breaking the frontend
# https://github.com/home-assistant/frontend/issues/14376
metadata["config_flow"] = bool(integration.config_flow)
if integration.iot_class:
metadata["iot_class"] = integration.iot_class
if integration.supported_by: