mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +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
|
||||
|
||||
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.helpers.dispatcher import async_dispatcher_connect
|
||||
|
||||
@ -116,7 +116,7 @@ class UniFiRxBandwidthSensor(UniFiClient):
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Return the unit of measurement of this entity."""
|
||||
return DATA_BYTES
|
||||
return DATA_MEGABYTES
|
||||
|
||||
|
||||
class UniFiTxBandwidthSensor(UniFiRxBandwidthSensor):
|
||||
|
Loading…
x
Reference in New Issue
Block a user