Add mobile_app notify ClientError handling (#45480)
This commit is contained in:
parent
73a04e653f
commit
6aadf14bdd
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue