mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Move qbittorrent constants to const.py (#90201)
* move qbittorrent constants to const.py * move SENSOR_TYPE_* consts back to sensors.py
This commit is contained in:
parent
a66bef6fdf
commit
8149652f9f
3
homeassistant/components/qbittorrent/const.py
Normal file
3
homeassistant/components/qbittorrent/const.py
Normal file
@ -0,0 +1,3 @@
|
||||
"""Constants for qBittorrent."""
|
||||
|
||||
DEFAULT_NAME = "qBittorrent"
|
@ -28,14 +28,14 @@ import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||
|
||||
from .const import DEFAULT_NAME
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
SENSOR_TYPE_CURRENT_STATUS = "current_status"
|
||||
SENSOR_TYPE_DOWNLOAD_SPEED = "download_speed"
|
||||
SENSOR_TYPE_UPLOAD_SPEED = "upload_speed"
|
||||
|
||||
DEFAULT_NAME = "qBittorrent"
|
||||
|
||||
SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
||||
SensorEntityDescription(
|
||||
key=SENSOR_TYPE_CURRENT_STATUS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user