Revert Transmission entities name changes (#89409)

This commit is contained in:
avee87 2023-03-09 12:02:12 +00:00 committed by GitHub
parent 3989ef8863
commit c2f69dc59d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -1,7 +1,7 @@
"""Constants for the Transmission Bittorent Client component."""
DOMAIN = "transmission"
SWITCH_TYPES = {"on_off": "Switch", "turtle_mode": "Turtle mode"}
SWITCH_TYPES = {"on_off": "Switch", "turtle_mode": "Turtle Mode"}
ORDER_NEWEST_FIRST = "newest_first"
ORDER_OLDEST_FIRST = "oldest_first"

View file

@ -38,14 +38,14 @@ async def async_setup_entry(
name = config_entry.data[CONF_NAME]
dev = [
TransmissionSpeedSensor(tm_client, name, "Down speed", "download"),
TransmissionSpeedSensor(tm_client, name, "Up speed", "upload"),
TransmissionSpeedSensor(tm_client, name, "Down Speed", "download"),
TransmissionSpeedSensor(tm_client, name, "Up Speed", "upload"),
TransmissionStatusSensor(tm_client, name, "Status"),
TransmissionTorrentsSensor(tm_client, name, "Active torrents", "active"),
TransmissionTorrentsSensor(tm_client, name, "Paused torrents", "paused"),
TransmissionTorrentsSensor(tm_client, name, "Total torrents", "total"),
TransmissionTorrentsSensor(tm_client, name, "Completed torrents", "completed"),
TransmissionTorrentsSensor(tm_client, name, "Started torrents", "started"),
TransmissionTorrentsSensor(tm_client, name, "Active Torrents", "active"),
TransmissionTorrentsSensor(tm_client, name, "Paused Torrents", "paused"),
TransmissionTorrentsSensor(tm_client, name, "Total Torrents", "total"),
TransmissionTorrentsSensor(tm_client, name, "Completed Torrents", "completed"),
TransmissionTorrentsSensor(tm_client, name, "Started Torrents", "started"),
]
async_add_entities(dev, True)