Fix downloader_download_failed event not firing for HTTP response errors (#24640)
This commit is contained in:
1 parent
f1cbb2a0b3
commit
0bdbf007b2
1 file changed
+5
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user