mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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",
|
||||
url,
|
||||
req.status_code)
|
||||
hass.bus.fire(
|
||||
"{}_{}".format(DOMAIN, DOWNLOAD_FAILED_EVENT), {
|
||||
'url': url,
|
||||
'filename': filename
|
||||
})
|
||||
|
||||
else:
|
||||
if filename is None and \
|
||||
|
Loading…
x
Reference in New Issue
Block a user