mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Fix downloader_download_failed event not firing for HTTP response errors (#24640)
This commit is contained in:
@@ -79,6 +79,11 @@ def setup(hass, config):
|
|||||||
"downloading '%s' failed, status_code=%d",
|
"downloading '%s' failed, status_code=%d",
|
||||||
url,
|
url,
|
||||||
req.status_code)
|
req.status_code)
|
||||||
|
hass.bus.fire(
|
||||||
|
"{}_{}".format(DOMAIN, DOWNLOAD_FAILED_EVENT), {
|
||||||
|
'url': url,
|
||||||
|
'filename': filename
|
||||||
|
})
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if filename is None and \
|
if filename is None and \
|
||||||
|
Reference in New Issue
Block a user