mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
fix integration descriptions (#81008)
This commit is contained in:
parent
c59944bc84
commit
9ed31bb8df
@ -264,7 +264,6 @@ async def async_get_integration_descriptions(
|
||||
custom_integrations = await async_get_custom_components(hass)
|
||||
custom_flows: dict[str, Any] = {
|
||||
"integration": {},
|
||||
"hardware": {},
|
||||
"helper": {},
|
||||
}
|
||||
|
||||
@ -273,14 +272,14 @@ async def async_get_integration_descriptions(
|
||||
if integration.integration_type in ("entity", "system"):
|
||||
continue
|
||||
|
||||
for integration_type in ("integration", "hardware", "helper"):
|
||||
for integration_type in ("integration", "helper"):
|
||||
if integration.domain not in core_flows[integration_type]:
|
||||
continue
|
||||
del core_flows[integration_type][integration.domain]
|
||||
if integration.domain in core_flows["translated_name"]:
|
||||
core_flows["translated_name"].remove(integration.domain)
|
||||
|
||||
if integration.integration_type in ("hardware", "helper"):
|
||||
if integration.integration_type == "helper":
|
||||
integration_key: str = integration.integration_type
|
||||
else:
|
||||
integration_key = "integration"
|
||||
|
Loading…
x
Reference in New Issue
Block a user