mirror of
https://github.com/home-assistant/core.git
synced 2026-07-03 20:56:06 +01:00
a7fd763570
Co-authored-by: Robert Resch <robert@resch.dev> Co-authored-by: Norbert Rittel <norbert@rittel.de> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Owais Amin <141307092+owais-cielo@users.noreply.github.com> Co-authored-by: Owais Amin <owais@cielowigle.com> Co-authored-by: Maria Nadeem <maria@cielowigle.com>
25 lines
540 B
Python
25 lines
540 B
Python
"""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,
|
|
)
|