* Allow async_setup changes to config entry data be taken into account * Fix tests * Limit scope try…finally * Update tests/test_config_entries.py Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * Fix import Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
15 lines
271 B
Python
15 lines
271 B
Python
"""Define AirVisual constants."""
|
|
from datetime import timedelta
|
|
|
|
DOMAIN = "airvisual"
|
|
|
|
CONF_CITY = "city"
|
|
CONF_COUNTRY = "country"
|
|
CONF_GEOGRAPHIES = "geographies"
|
|
|
|
DATA_CLIENT = "client"
|
|
|
|
DEFAULT_SCAN_INTERVAL = timedelta(minutes=10)
|
|
|
|
TOPIC_UPDATE = f"{DOMAIN}_update"
|