mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Add and use bunch of data size and rate related constants (#31781)
Also fix a few units to match the corresponding data.
This commit is contained in:
@ -1,13 +1,16 @@
|
||||
"""Constants for the Transmission Bittorent Client component."""
|
||||
|
||||
from homeassistant.const import DATA_RATE_MEGABYTES_PER_SECOND
|
||||
|
||||
DOMAIN = "transmission"
|
||||
|
||||
SENSOR_TYPES = {
|
||||
"active_torrents": ["Active Torrents", "Torrents"],
|
||||
"current_status": ["Status", None],
|
||||
"download_speed": ["Down Speed", "MB/s"],
|
||||
"download_speed": ["Down Speed", DATA_RATE_MEGABYTES_PER_SECOND],
|
||||
"paused_torrents": ["Paused Torrents", "Torrents"],
|
||||
"total_torrents": ["Total Torrents", "Torrents"],
|
||||
"upload_speed": ["Up Speed", "MB/s"],
|
||||
"upload_speed": ["Up Speed", DATA_RATE_MEGABYTES_PER_SECOND],
|
||||
"completed_torrents": ["Completed Torrents", "Torrents"],
|
||||
"started_torrents": ["Started Torrents", "Torrents"],
|
||||
}
|
||||
|
Reference in New Issue
Block a user