Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the SolarEdge Monitoring API."""
2 
3 from datetime import timedelta
4 import logging
5 from typing import Final
6 
7 DOMAIN = "solaredge"
8 
9 LOGGER = logging.getLogger(__package__)
10 
11 DATA_API_CLIENT: Final = "api_client"
12 
13 # Config for solaredge monitoring api requests.
14 CONF_SITE_ID = "site_id"
15 DEFAULT_NAME = "SolarEdge"
16 
17 OVERVIEW_UPDATE_DELAY = timedelta(minutes=15)
18 DETAILS_UPDATE_DELAY = timedelta(hours=12)
19 INVENTORY_UPDATE_DELAY = timedelta(hours=12)
20 POWER_FLOW_UPDATE_DELAY = timedelta(minutes=15)
21 ENERGY_DETAILS_DELAY = timedelta(minutes=15)
22 
23 SCAN_INTERVAL = timedelta(minutes=15)