My downloader.download_file broke with 2021.2.2 subdir change

I’ve used an mqtt triggered automation to download an image from my zoneminder server using the downloader component. The component is required to have a download_dir set but now the action MUST ALSO have a subdir set or it silently fails.

I have had a few zoneminder triggers over the last day that come up without an image and I finally sat down to dig into it. I found that the subdir which the docs say is optional actually is required as of 2021.2.2.

Here’s the pull request in 2021.2.2: https://github.com/home-assistant/core/pull/46061

I just wanted to mention it because if others are using this component and wondering why they’re not getting their downloads, this might help them to figure it out.