Pass device entry to async_get_device_diagnostics instead of device_id (#64501)

This commit is contained in:
Raman Gupta 2022-01-20 01:19:09 -05:00 committed by GitHub
parent 917b84f4d9
commit 24c733b271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,5 +208,5 @@ class DownloadDiagnosticsView(http.HomeAssistantView):
if info[sub_type.value] is None: if info[sub_type.value] is None:
return web.Response(status=HTTPStatus.NOT_FOUND) return web.Response(status=HTTPStatus.NOT_FOUND)
data = await info[sub_type.value](hass, config_entry, sub_id) data = await info[sub_type.value](hass, config_entry, device)
return _get_json_file_response(data, filename, d_type, d_id, sub_type, sub_id) return _get_json_file_response(data, filename, d_type, d_id, sub_type, sub_id)