mirror of
https://github.com/home-assistant/core.git
synced 2025-05-15 03:19:15 +00:00
UniFi - Fix unit of measurement from B to MB (#34091)
This commit is contained in:
parent
f965fb6350
commit
fc670e46d9
@ -2,7 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.unifi.config_flow import get_controller_from_config_entry
|
from homeassistant.components.unifi.config_flow import get_controller_from_config_entry
|
||||||
from homeassistant.const import DATA_BYTES
|
from homeassistant.const import DATA_MEGABYTES
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ class UniFiRxBandwidthSensor(UniFiClient):
|
|||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
"""Return the unit of measurement of this entity."""
|
"""Return the unit of measurement of this entity."""
|
||||||
return DATA_BYTES
|
return DATA_MEGABYTES
|
||||||
|
|
||||||
|
|
||||||
class UniFiTxBandwidthSensor(UniFiRxBandwidthSensor):
|
class UniFiTxBandwidthSensor(UniFiRxBandwidthSensor):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user