mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
parent
b69f589c30
commit
c32961f1bc
@ -8,7 +8,7 @@
|
|||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["aiounifi"],
|
"loggers": ["aiounifi"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["aiounifi==75"],
|
"requirements": ["aiounifi==76"],
|
||||||
"ssdp": [
|
"ssdp": [
|
||||||
{
|
{
|
||||||
"manufacturer": "Ubiquiti Networks",
|
"manufacturer": "Ubiquiti Networks",
|
||||||
|
@ -11,7 +11,6 @@ from dataclasses import dataclass
|
|||||||
from datetime import date, datetime, timedelta
|
from datetime import date, datetime, timedelta
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from typing import cast
|
|
||||||
|
|
||||||
from aiounifi.interfaces.api_handlers import ItemEvent
|
from aiounifi.interfaces.api_handlers import ItemEvent
|
||||||
from aiounifi.interfaces.clients import Clients
|
from aiounifi.interfaces.clients import Clients
|
||||||
@ -256,7 +255,7 @@ ENTITY_DESCRIPTIONS: tuple[UnifiSensorEntityDescription, ...] = (
|
|||||||
name_fn=lambda port: f"{port.name} RX",
|
name_fn=lambda port: f"{port.name} RX",
|
||||||
object_fn=lambda api, obj_id: api.ports[obj_id],
|
object_fn=lambda api, obj_id: api.ports[obj_id],
|
||||||
unique_id_fn=lambda hub, obj_id: f"port_rx-{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](
|
UnifiSensorEntityDescription[Ports, Port](
|
||||||
key="Port Bandwidth sensor TX",
|
key="Port Bandwidth sensor TX",
|
||||||
@ -274,7 +273,7 @@ ENTITY_DESCRIPTIONS: tuple[UnifiSensorEntityDescription, ...] = (
|
|||||||
name_fn=lambda port: f"{port.name} TX",
|
name_fn=lambda port: f"{port.name} TX",
|
||||||
object_fn=lambda api, obj_id: api.ports[obj_id],
|
object_fn=lambda api, obj_id: api.ports[obj_id],
|
||||||
unique_id_fn=lambda hub, obj_id: f"port_tx-{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](
|
UnifiSensorEntityDescription[Clients, Client](
|
||||||
key="Client uptime",
|
key="Client uptime",
|
||||||
|
@ -383,7 +383,7 @@ aiotankerkoenig==0.4.1
|
|||||||
aiotractive==0.5.6
|
aiotractive==0.5.6
|
||||||
|
|
||||||
# homeassistant.components.unifi
|
# homeassistant.components.unifi
|
||||||
aiounifi==75
|
aiounifi==76
|
||||||
|
|
||||||
# homeassistant.components.vlc_telnet
|
# homeassistant.components.vlc_telnet
|
||||||
aiovlc==0.1.0
|
aiovlc==0.1.0
|
||||||
|
@ -356,7 +356,7 @@ aiotankerkoenig==0.4.1
|
|||||||
aiotractive==0.5.6
|
aiotractive==0.5.6
|
||||||
|
|
||||||
# homeassistant.components.unifi
|
# homeassistant.components.unifi
|
||||||
aiounifi==75
|
aiounifi==76
|
||||||
|
|
||||||
# homeassistant.components.vlc_telnet
|
# homeassistant.components.vlc_telnet
|
||||||
aiovlc==0.1.0
|
aiovlc==0.1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user