mirror of https://github.com/home-assistant/core
17 lines
401 B
Python
17 lines
401 B
Python
"""Constant values for pvpc_hourly_pricing."""
|
|
|
|
from aiopvpc.const import TARIFFS
|
|
import voluptuous as vol
|
|
|
|
DOMAIN = "pvpc_hourly_pricing"
|
|
|
|
ATTR_POWER = "power"
|
|
ATTR_POWER_P3 = "power_p3"
|
|
ATTR_TARIFF = "tariff"
|
|
DEFAULT_NAME = "PVPC"
|
|
CONF_USE_API_TOKEN = "use_api_token"
|
|
|
|
VALID_POWER = vol.All(vol.Coerce(float), vol.Range(min=1.0, max=15.0))
|
|
VALID_TARIFF = vol.In(TARIFFS)
|
|
DEFAULT_TARIFF = TARIFFS[0]
|