core/homeassistant/components/deluge/const.py

17 lines
435 B
Python
Raw Normal View History

2022-03-23 04:01:24 +00:00
"""Constants for the Deluge integration."""
import logging
from typing import Final
2022-03-23 04:01:24 +00:00
CONF_WEB_PORT = "web_port"
CURRENT_STATUS = "current_status"
DATA_KEYS = ["upload_rate", "download_rate", "dht_upload_rate", "dht_download_rate"]
2022-03-23 04:01:24 +00:00
DEFAULT_NAME = "Deluge"
DEFAULT_RPC_PORT = 58846
DEFAULT_WEB_PORT = 8112
DOMAIN: Final = "deluge"
DOWNLOAD_SPEED = "download_speed"
2022-03-23 04:01:24 +00:00
LOGGER = logging.getLogger(__package__)
UPLOAD_SPEED = "upload_speed"