UniFi - Fix unit of measurement from B to MB (#34091)

pull/33937/head
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
1 changed files with 2 additions and 2 deletions

View File

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