mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix downloader_download_failed event not firing for HTTP response errors (#24640)
This commit is contained in:
parent
f1cbb2a0b3
commit
0bdbf007b2
@ -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 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user