Since my Home Assistant hardware does not offer any local media, I have disabled the local media directories using the following configuration:
homeassistant:
media_dirs: {}
However, this does not prevent the “Local Media” section from appearing in the Media Sources gallery (the section is empty, as expected):
I would like for some way to completely disable the “Local Media” section so that it does not appear in the gallery.