2021-05-05 23:33:32 +00:00
|
|
|
"""Constants for the System Bridge integration."""
|
|
|
|
import asyncio
|
|
|
|
|
|
|
|
from aiohttp.client_exceptions import (
|
|
|
|
ClientConnectionError,
|
|
|
|
ClientConnectorError,
|
|
|
|
ClientResponseError,
|
|
|
|
)
|
|
|
|
from systembridge.exceptions import BridgeException
|
|
|
|
|
|
|
|
DOMAIN = "system_bridge"
|
|
|
|
|
|
|
|
BRIDGE_CONNECTION_ERRORS = (
|
|
|
|
asyncio.TimeoutError,
|
|
|
|
BridgeException,
|
|
|
|
ClientConnectionError,
|
|
|
|
ClientConnectorError,
|
|
|
|
ClientResponseError,
|
2021-11-09 05:46:33 +00:00
|
|
|
OSError,
|
2021-05-05 23:33:32 +00:00
|
|
|
)
|