core/homeassistant/components/peco/const.py

23 lines
585 B
Python

"""Constants for the PECO Outage Counter integration."""
import logging
from typing import Final
DOMAIN: Final = "peco"
LOGGER: Final = logging.getLogger(__package__)
COUNTY_LIST: Final = [
"BUCKS",
"CHESTER",
"DELAWARE",
"MONTGOMERY",
"PHILADELPHIA",
"YORK",
"TOTAL",
]
CONFIG_FLOW_COUNTIES: Final = [{county: county.capitalize()} for county in COUNTY_LIST]
OUTAGE_SCAN_INTERVAL: Final = 9 # minutes
SMART_METER_SCAN_INTERVAL: Final = 15 # minutes
CONF_COUNTY: Final = "county"
ATTR_CONTENT: Final = "content"
CONF_PHONE_NUMBER: Final = "phone_number"