From 9804fbb527fb053296533c5cd4604afcb7043a28 Mon Sep 17 00:00:00 2001 From: Yuchen Ying Date: Thu, 19 Dec 2019 02:23:46 -0800 Subject: [PATCH] Add unit_of_measurement to various Transmission sensors (#30037) * Add unit_of_measurement to various Transmission sensors Without unit_of_measurement, the history graph card will not show those sensors as line chart. * Change Counts to Torrents. --- homeassistant/components/transmission/const.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/transmission/const.py b/homeassistant/components/transmission/const.py index 5540f718ba1..9a9250dbed6 100644 --- a/homeassistant/components/transmission/const.py +++ b/homeassistant/components/transmission/const.py @@ -2,14 +2,14 @@ DOMAIN = "transmission" SENSOR_TYPES = { - "active_torrents": ["Active Torrents", None], + "active_torrents": ["Active Torrents", "Torrents"], "current_status": ["Status", None], "download_speed": ["Down Speed", "MB/s"], - "paused_torrents": ["Paused Torrents", None], - "total_torrents": ["Total Torrents", None], + "paused_torrents": ["Paused Torrents", "Torrents"], + "total_torrents": ["Total Torrents", "Torrents"], "upload_speed": ["Up Speed", "MB/s"], - "completed_torrents": ["Completed Torrents", None], - "started_torrents": ["Started Torrents", None], + "completed_torrents": ["Completed Torrents", "Torrents"], + "started_torrents": ["Started Torrents", "Torrents"], } SWITCH_TYPES = {"on_off": "Switch", "turtle_mode": "Turtle Mode"}