From 4ae887ad346613896623b3192f33ccb180b50515 Mon Sep 17 00:00:00 2001 From: acshef Date: Thu, 30 Sep 2021 03:52:21 -0600 Subject: [PATCH] Correct unit of measurement for qbittorrent data rate sensors (#55758) --- homeassistant/components/qbittorrent/sensor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/qbittorrent/sensor.py b/homeassistant/components/qbittorrent/sensor.py index 4663b203248..6dd52af5631 100644 --- a/homeassistant/components/qbittorrent/sensor.py +++ b/homeassistant/components/qbittorrent/sensor.py @@ -17,7 +17,7 @@ from homeassistant.const import ( CONF_PASSWORD, CONF_URL, CONF_USERNAME, - DATA_RATE_KILOBYTES_PER_SECOND, + DATA_RATE_KIBIBYTES_PER_SECOND, STATE_IDLE, ) from homeassistant.exceptions import PlatformNotReady @@ -39,12 +39,12 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( SensorEntityDescription( key=SENSOR_TYPE_DOWNLOAD_SPEED, name="Down Speed", - native_unit_of_measurement=DATA_RATE_KILOBYTES_PER_SECOND, + native_unit_of_measurement=DATA_RATE_KIBIBYTES_PER_SECOND, ), SensorEntityDescription( key=SENSOR_TYPE_UPLOAD_SPEED, name="Up Speed", - native_unit_of_measurement=DATA_RATE_KILOBYTES_PER_SECOND, + native_unit_of_measurement=DATA_RATE_KIBIBYTES_PER_SECOND, ), )