* chore: Update bsblan library to version 0.6.1 * add dataclass BSBLANConfig remove session as bsblan has it's own session * Update temperature unit handling in BSBLANClimate * chore: Remove unused constant in bsblan/const.py * chore: Update python-bsblan library to version 0.6.2 * feat: Add async_get_clientsession to BSBLAN initialization This commit adds the `async_get_clientsession` function to the initialization of the `BSBLAN` class in both `__init__.py` and `config_flow.py` files. This allows the `BSBLAN` instance to have its own session for making HTTP requests. This change improves the performance and reliability of the BSBLAN integration.
24 lines
559 B
Python
24 lines
559 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)
|
|
|
|
# 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
|