Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the PECO Outage Counter integration."""
2 
3 import logging
4 from typing import Final
5 
6 DOMAIN: Final = "peco"
7 LOGGER: Final = logging.getLogger(__package__)
8 COUNTY_LIST: Final = [
9  "BUCKS",
10  "CHESTER",
11  "DELAWARE",
12  "MONTGOMERY",
13  "PHILADELPHIA",
14  "YORK",
15  "TOTAL",
16 ]
17 CONFIG_FLOW_COUNTIES: Final = [{county: county.capitalize()} for county in COUNTY_LIST]
18 OUTAGE_SCAN_INTERVAL: Final = 9 # minutes
19 SMART_METER_SCAN_INTERVAL: Final = 15 # minutes
20 CONF_COUNTY: Final = "county"
21 ATTR_CONTENT: Final = "content"
22 CONF_PHONE_NUMBER: Final = "phone_number"