Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the EnergyZero integration."""
2 
3 from __future__ import annotations
4 
5 from datetime import timedelta
6 import logging
7 from typing import Final
8 
9 DOMAIN: Final = "energyzero"
10 LOGGER = logging.getLogger(__package__)
11 SCAN_INTERVAL = timedelta(minutes=10)
12 THRESHOLD_HOUR: Final = 14
13 
14 SERVICE_TYPE_DEVICE_NAMES = {
15  "today_energy": "Energy market price",
16  "today_gas": "Gas market price",
17 }