1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-22 03:49:36 +00:00
Files
core/homeassistant/components/bsblan/const.py
Willem-Jan van Rootselaar 58182a344d Reduce API calls in BSBlan (#152704)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2025-10-28 13:43:45 -07:00

27 lines
731 B
Python

"""Constants for the BSB-Lan integration."""
from __future__ import annotations
from datetime import timedelta
import logging
from typing import Final
# Integration domain
DOMAIN: Final = "bsblan"
LOGGER = logging.getLogger(__package__)
SCAN_INTERVAL = timedelta(seconds=12) # Legacy interval, kept for compatibility
SCAN_INTERVAL_FAST = timedelta(seconds=12) # For state/sensor data
SCAN_INTERVAL_SLOW = timedelta(minutes=5) # For config data
# Services
DATA_BSBLAN_CLIENT: Final = "bsblan_client"
ATTR_TARGET_TEMPERATURE: Final = "target_temperature"
ATTR_INSIDE_TEMPERATURE: Final = "inside_temperature"
ATTR_OUTSIDE_TEMPERATURE: Final = "outside_temperature"
CONF_PASSKEY: Final = "passkey"
DEFAULT_PORT: Final = 80