mirror of
https://github.com/home-assistant/core.git
synced 2026-06-02 05:34:15 +01:00
759ac2eacd
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: it-rec <19797875+it-rec@users.noreply.github.com>
29 lines
818 B
Python
29 lines
818 B
Python
"""Constants for the SolarEdge Monitoring API."""
|
|
|
|
from datetime import timedelta
|
|
import logging
|
|
from typing import Final
|
|
|
|
DOMAIN = "solaredge"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
DATA_API_CLIENT: Final = "api_client"
|
|
DATA_MODULES_COORDINATOR: Final = "modules_coordinator"
|
|
|
|
# Config for solaredge monitoring api requests.
|
|
CONF_SITE_ID = "site_id"
|
|
CONF_SECTION_API_AUTH = "api_auth"
|
|
CONF_SECTION_WEB_AUTH = "web_auth"
|
|
DEFAULT_NAME = "SolarEdge"
|
|
|
|
OVERVIEW_UPDATE_DELAY = timedelta(minutes=15)
|
|
DETAILS_UPDATE_DELAY = timedelta(hours=12)
|
|
INVENTORY_UPDATE_DELAY = timedelta(hours=12)
|
|
POWER_FLOW_UPDATE_DELAY = timedelta(minutes=15)
|
|
ENERGY_DETAILS_DELAY = timedelta(minutes=15)
|
|
STORAGE_DATA_UPDATE_DELAY = timedelta(hours=4)
|
|
MODULE_STATISTICS_UPDATE_DELAY = timedelta(hours=12)
|
|
|
|
SCAN_INTERVAL = timedelta(minutes=15)
|