1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Use Integration properties for custom integration listing in diagnostics (#64908)

This commit is contained in:
Joakim Sørensen 2022-01-25 14:47:27 +01:00 committed by GitHub
parent cadf0ef60b
commit cda2c73f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,8 +143,8 @@ async def _async_get_json_file_response(
all_custom_components = await async_get_custom_components(hass) all_custom_components = await async_get_custom_components(hass)
for cc_domain, cc_obj in all_custom_components.items(): for cc_domain, cc_obj in all_custom_components.items():
custom_components[cc_domain] = { custom_components[cc_domain] = {
"version": cc_obj.manifest["version"], "version": cc_obj.version,
"requirements": cc_obj.manifest["requirements"], "requirements": cc_obj.requirements,
} }
try: try:
json_data = json.dumps( json_data = json.dumps(