mirror of
https://github.com/home-assistant/core.git
synced 2026-09-08 22:51:33 +01:00
29 lines
640 B
Python
29 lines
640 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,
|
|
Platform.SENSOR,
|
|
]
|
|
DEFAULT_NAME: Final = "Cielo Home"
|
|
DEFAULT_SCAN_INTERVAL: Final[int] = 2 * 60
|
|
TIMEOUT: Final[int] = 20
|
|
LOGGER: Final = logging.getLogger(__package__)
|
|
|
|
SENSOR_TEMPERATURE: Final = "temperature"
|
|
SENSOR_HUMIDITY: Final = "humidity"
|
|
|
|
CIELO_ERRORS: Final[tuple] = (
|
|
ClientError,
|
|
TimeoutError,
|
|
CieloError,
|
|
)
|