mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Add mobile_app notify ClientError handling (#45480)
This commit is contained in:
parent
73a04e653f
commit
6aadf14bdd
@ -2,6 +2,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
import async_timeout
|
import async_timeout
|
||||||
|
|
||||||
from homeassistant.components.notify import (
|
from homeassistant.components.notify import (
|
||||||
@ -168,3 +169,5 @@ class MobileAppNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
_LOGGER.error("Timeout sending notification to %s", push_url)
|
_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…
x
Reference in New Issue
Block a user