1
0
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 ()

This commit is contained in:
Robert Svensson 2020-04-12 16:18:44 +02:00 committed by GitHub
parent f965fb6350
commit fc670e46d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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):