"""Constants for the Cielo Home integration."""

import logging
from typing import Final

from aiohttp import ClientError
from cieloconnectapi.exceptions import CieloError

from homeassistant.const import Platform

DOMAIN: Final = "cielo_home"
PLATFORMS: Final[list[Platform]] = [
    Platform.CLIMATE,
]
DEFAULT_NAME: Final = "Cielo Home"
DEFAULT_SCAN_INTERVAL: Final[int] = 2 * 60
TIMEOUT: Final[int] = 20
LOGGER: Final = logging.getLogger(__package__)

CIELO_ERRORS: Final[tuple] = (
    ClientError,
    TimeoutError,
    CieloError,
)
