* work on config flow * Update test_init.py * work on config flow * Update test_config_flow.py * Update test_config_flow.py * Update __init__.py * Update test_config_flow.py * Update __init__.py * Update test_config_flow.py * Update test_config_flow.py * Update test_config_flow.py * Update test_config_flow.py * Update test_config_flow.py * Update test_config_flow.py * Update __init__.py * Update __init__.py * Update __init__.py * Apply suggestions from code review Co-authored-by: J. Nick Koston <nick@koston.org> * Update __init__.py * Update __init__.py * Update __init__.py * Update config_flow.py * Update __init__.py * Update __init__.py * Create coordinator.py * Update __init__.py * Update sensor.py * Update __init__.py * Update .coveragerc * Update coordinator.py * Update __init__.py * Update coordinator.py * Update __init__.py * Update coordinator.py * Update config_flow.py * Update __init__.py * Update coordinator.py * Update __init__.py * Update test_config_flow.py * Update coordinator.py * Update test_config_flow.py * Update test_init.py * Update homeassistant/components/nzbget/coordinator.py * Update test_config_flow.py Co-authored-by: J. Nick Koston <nick@koston.org>
22 lines
460 B
Python
22 lines
460 B
Python
"""Constants for NZBGet."""
|
|
DOMAIN = "nzbget"
|
|
|
|
# Attributes
|
|
ATTR_SPEED = "speed"
|
|
|
|
# Data
|
|
DATA_COORDINATOR = "corrdinator"
|
|
DATA_UNDO_UPDATE_LISTENER = "undo_update_listener"
|
|
|
|
# Defaults
|
|
DEFAULT_NAME = "NZBGet"
|
|
DEFAULT_PORT = 6789
|
|
DEFAULT_SCAN_INTERVAL = 5 # time in seconds
|
|
DEFAULT_SPEED_LIMIT = 1000 # 1 Megabyte/Sec
|
|
DEFAULT_SSL = False
|
|
DEFAULT_VERIFY_SSL = False
|
|
|
|
# Services
|
|
SERVICE_PAUSE = "pause"
|
|
SERVICE_RESUME = "resume"
|
|
SERVICE_SET_SPEED = "set_speed"
|