mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Correct unit of measurement for qbittorrent data rate sensors (#55758)
This commit is contained in:
parent
1f5720199c
commit
4ae887ad34
@ -17,7 +17,7 @@ from homeassistant.const import (
|
|||||||
CONF_PASSWORD,
|
CONF_PASSWORD,
|
||||||
CONF_URL,
|
CONF_URL,
|
||||||
CONF_USERNAME,
|
CONF_USERNAME,
|
||||||
DATA_RATE_KILOBYTES_PER_SECOND,
|
DATA_RATE_KIBIBYTES_PER_SECOND,
|
||||||
STATE_IDLE,
|
STATE_IDLE,
|
||||||
)
|
)
|
||||||
from homeassistant.exceptions import PlatformNotReady
|
from homeassistant.exceptions import PlatformNotReady
|
||||||
@ -39,12 +39,12 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=SENSOR_TYPE_DOWNLOAD_SPEED,
|
key=SENSOR_TYPE_DOWNLOAD_SPEED,
|
||||||
name="Down Speed",
|
name="Down Speed",
|
||||||
native_unit_of_measurement=DATA_RATE_KILOBYTES_PER_SECOND,
|
native_unit_of_measurement=DATA_RATE_KIBIBYTES_PER_SECOND,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=SENSOR_TYPE_UPLOAD_SPEED,
|
key=SENSOR_TYPE_UPLOAD_SPEED,
|
||||||
name="Up Speed",
|
name="Up Speed",
|
||||||
native_unit_of_measurement=DATA_RATE_KILOBYTES_PER_SECOND,
|
native_unit_of_measurement=DATA_RATE_KIBIBYTES_PER_SECOND,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user