Add mobile_app notify ClientError handling (#45480)

This commit is contained in:
Marc Mueller 2021-01-27 20:39:43 +01:00 committed by GitHub
parent 73a04e653f
commit 6aadf14bdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
import asyncio
import logging
import aiohttp
import async_timeout
from homeassistant.components.notify import (
@ -168,3 +169,5 @@ class MobileAppNotificationService(BaseNotificationService):
except asyncio.TimeoutError:
_LOGGER.error("Timeout sending notification to %s", push_url)
except aiohttp.ClientError as err:
_LOGGER.error("Error sending notification to %s: %r", push_url, err)