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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: