core/homeassistant/components/sensibo/const.py

26 lines
535 B
Python

"""Constants for Sensibo."""
import asyncio
import logging
from aiohttp.client_exceptions import ClientConnectionError
from pysensibo.exceptions import AuthenticationError, SensiboError
from homeassistant.const import Platform
LOGGER = logging.getLogger(__package__)
DEFAULT_SCAN_INTERVAL = 60
DOMAIN = "sensibo"
PLATFORMS = [Platform.CLIMATE, Platform.NUMBER]
ALL = ["all"]
DEFAULT_NAME = "Sensibo"
TIMEOUT = 8
SENSIBO_ERRORS = (
ClientConnectionError,
asyncio.TimeoutError,
AuthenticationError,
SensiboError,
)