* Add support for PECO smart meter * Add support for PECO smart meter * Conform to black * Fix tests and additional clean-up * Return init file to original state * Move to FlowResultType * Catch up to upstream * Remove commented code * isort * Merge smart meter and outage count into one entry * Test coverage * Remove logging exceptions from config flow verification * Fix comments from @emontnemery * Revert "Add support for PECO smart meter" This reverts commit 36ca90856684f328e71bc3778fa7aa52a6bde5ca. * More fixes
21 lines
584 B
Python
21 lines
584 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"
|