parent
b69f589c30
commit
c32961f1bc
4 changed files with 5 additions and 6 deletions
|
@ -8,7 +8,7 @@
|
|||
"iot_class": "local_push",
|
||||
"loggers": ["aiounifi"],
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["aiounifi==75"],
|
||||
"requirements": ["aiounifi==76"],
|
||||
"ssdp": [
|
||||
{
|
||||
"manufacturer": "Ubiquiti Networks",
|
||||
|
|
|
@ -11,7 +11,6 @@ from dataclasses import dataclass
|
|||
from datetime import date, datetime, timedelta
|
||||
from decimal import Decimal
|
||||
from functools import partial
|
||||
from typing import cast
|
||||
|
||||
from aiounifi.interfaces.api_handlers import ItemEvent
|
||||
from aiounifi.interfaces.clients import Clients
|
||||
|
@ -256,7 +255,7 @@ ENTITY_DESCRIPTIONS: tuple[UnifiSensorEntityDescription, ...] = (
|
|||
name_fn=lambda port: f"{port.name} RX",
|
||||
object_fn=lambda api, obj_id: api.ports[obj_id],
|
||||
unique_id_fn=lambda hub, obj_id: f"port_rx-{obj_id}",
|
||||
value_fn=lambda hub, port: cast(float, port.raw.get("rx_bytes-r", 0)),
|
||||
value_fn=lambda hub, port: port.rx_bytes_r,
|
||||
),
|
||||
UnifiSensorEntityDescription[Ports, Port](
|
||||
key="Port Bandwidth sensor TX",
|
||||
|
@ -274,7 +273,7 @@ ENTITY_DESCRIPTIONS: tuple[UnifiSensorEntityDescription, ...] = (
|
|||
name_fn=lambda port: f"{port.name} TX",
|
||||
object_fn=lambda api, obj_id: api.ports[obj_id],
|
||||
unique_id_fn=lambda hub, obj_id: f"port_tx-{obj_id}",
|
||||
value_fn=lambda hub, port: cast(float, port.raw.get("tx_bytes-r", 0)),
|
||||
value_fn=lambda hub, port: port.tx_bytes_r,
|
||||
),
|
||||
UnifiSensorEntityDescription[Clients, Client](
|
||||
key="Client uptime",
|
||||
|
|
|
@ -383,7 +383,7 @@ aiotankerkoenig==0.4.1
|
|||
aiotractive==0.5.6
|
||||
|
||||
# homeassistant.components.unifi
|
||||
aiounifi==75
|
||||
aiounifi==76
|
||||
|
||||
# homeassistant.components.vlc_telnet
|
||||
aiovlc==0.1.0
|
||||
|
|
|
@ -356,7 +356,7 @@ aiotankerkoenig==0.4.1
|
|||
aiotractive==0.5.6
|
||||
|
||||
# homeassistant.components.unifi
|
||||
aiounifi==75
|
||||
aiounifi==76
|
||||
|
||||
# homeassistant.components.vlc_telnet
|
||||
aiovlc==0.1.0
|
||||
|
|
Loading…
Add table
Reference in a new issue