2023-01-03 21:28:16 +00:00
|
|
|
"""Constants for the EnergyZero integration."""
|
2024-03-08 13:15:26 +00:00
|
|
|
|
2023-01-03 21:28:16 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from datetime import timedelta
|
|
|
|
import logging
|
|
|
|
from typing import Final
|
|
|
|
|
|
|
|
DOMAIN: Final = "energyzero"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
SCAN_INTERVAL = timedelta(minutes=10)
|
|
|
|
THRESHOLD_HOUR: Final = 14
|
|
|
|
|
|
|
|
SERVICE_TYPE_DEVICE_NAMES = {
|
|
|
|
"today_energy": "Energy market price",
|
|
|
|
"today_gas": "Gas market price",
|
|
|
|
}
|