1
mirror of https://github.com/home-assistant/core synced 2024-09-03 08:14:07 +02:00
ha-core/homeassistant/components/sensibo/const.py
2022-06-20 22:33:47 -05:00

34 lines
665 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.BINARY_SENSOR,
Platform.BUTTON,
Platform.CLIMATE,
Platform.NUMBER,
Platform.SELECT,
Platform.SENSOR,
Platform.SWITCH,
Platform.UPDATE,
]
DEFAULT_NAME = "Sensibo"
TIMEOUT = 8
SENSIBO_ERRORS = (
ClientConnectionError,
asyncio.TimeoutError,
AuthenticationError,
SensiboError,
)