mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
parent
5073842514
commit
d004011d41
@ -1,13 +1,13 @@
|
||||
"""The TP-Link Omada integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
from tplink_omada_client import OmadaSite
|
||||
from tplink_omada_client.exceptions import (
|
||||
ConnectionFailed,
|
||||
LoginFailed,
|
||||
OmadaClientException,
|
||||
UnsupportedControllerVersion,
|
||||
)
|
||||
from tplink_omada_client.omadaclient import OmadaSite
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import Platform
|
||||
|
@ -5,7 +5,11 @@ from collections.abc import Callable, Generator
|
||||
|
||||
from attr import dataclass
|
||||
from tplink_omada_client.definitions import GatewayPortMode, LinkStatus
|
||||
from tplink_omada_client.devices import OmadaDevice, OmadaGateway, OmadaGatewayPort
|
||||
from tplink_omada_client.devices import (
|
||||
OmadaDevice,
|
||||
OmadaGateway,
|
||||
OmadaGatewayPortStatus,
|
||||
)
|
||||
|
||||
from homeassistant.components.binary_sensor import (
|
||||
BinarySensorDeviceClass,
|
||||
@ -81,7 +85,7 @@ class GatewayPortBinarySensorConfig:
|
||||
id_suffix: str
|
||||
name_suffix: str
|
||||
device_class: BinarySensorDeviceClass
|
||||
update_func: Callable[[OmadaGatewayPort], bool]
|
||||
update_func: Callable[[OmadaGatewayPortStatus], bool]
|
||||
|
||||
|
||||
class OmadaGatewayPortBinarySensor(OmadaDeviceEntity[OmadaGateway], BinarySensorEntity):
|
||||
|
@ -9,13 +9,13 @@ from typing import Any, NamedTuple
|
||||
from urllib.parse import urlsplit
|
||||
|
||||
from aiohttp import CookieJar
|
||||
from tplink_omada_client import OmadaClient, OmadaSite
|
||||
from tplink_omada_client.exceptions import (
|
||||
ConnectionFailed,
|
||||
LoginFailed,
|
||||
OmadaClientException,
|
||||
UnsupportedControllerVersion,
|
||||
)
|
||||
from tplink_omada_client.omadaclient import OmadaClient, OmadaSite
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries
|
||||
|
@ -1,11 +1,11 @@
|
||||
"""Controller for sharing Omada API coordinators between platforms."""
|
||||
|
||||
from tplink_omada_client import OmadaSiteClient
|
||||
from tplink_omada_client.devices import (
|
||||
OmadaGateway,
|
||||
OmadaSwitch,
|
||||
OmadaSwitchPortDetails,
|
||||
)
|
||||
from tplink_omada_client.omadasiteclient import OmadaSiteClient
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
|
@ -4,8 +4,8 @@ from datetime import timedelta
|
||||
import logging
|
||||
from typing import Generic, TypeVar
|
||||
|
||||
from tplink_omada_client import OmadaSiteClient
|
||||
from tplink_omada_client.exceptions import OmadaClientException
|
||||
from tplink_omada_client.omadaclient import OmadaSiteClient
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||
|
@ -6,5 +6,5 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/tplink_omada",
|
||||
"integration_type": "hub",
|
||||
"iot_class": "local_polling",
|
||||
"requirements": ["tplink-omada-client==1.3.2"]
|
||||
"requirements": ["tplink-omada-client==1.3.11"]
|
||||
}
|
||||
|
@ -3,9 +3,9 @@ from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from tplink_omada_client import SwitchPortOverrides
|
||||
from tplink_omada_client.definitions import PoEMode
|
||||
from tplink_omada_client.devices import OmadaSwitch, OmadaSwitchPortDetails
|
||||
from tplink_omada_client.omadasiteclient import SwitchPortOverrides
|
||||
|
||||
from homeassistant.components.switch import SwitchEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
|
@ -4,9 +4,9 @@ from __future__ import annotations
|
||||
from datetime import timedelta
|
||||
from typing import Any, NamedTuple
|
||||
|
||||
from tplink_omada_client import OmadaSiteClient
|
||||
from tplink_omada_client.devices import OmadaFirmwareUpdate, OmadaListDevice
|
||||
from tplink_omada_client.exceptions import OmadaClientException, RequestFailed
|
||||
from tplink_omada_client.omadasiteclient import OmadaSiteClient
|
||||
|
||||
from homeassistant.components.update import (
|
||||
UpdateDeviceClass,
|
||||
|
@ -2734,7 +2734,7 @@ total-connect-client==2023.2
|
||||
tp-connected==0.0.4
|
||||
|
||||
# homeassistant.components.tplink_omada
|
||||
tplink-omada-client==1.3.2
|
||||
tplink-omada-client==1.3.11
|
||||
|
||||
# homeassistant.components.transmission
|
||||
transmission-rpc==7.0.3
|
||||
|
@ -2084,7 +2084,7 @@ toonapi==0.3.0
|
||||
total-connect-client==2023.2
|
||||
|
||||
# homeassistant.components.tplink_omada
|
||||
tplink-omada-client==1.3.2
|
||||
tplink-omada-client==1.3.11
|
||||
|
||||
# homeassistant.components.transmission
|
||||
transmission-rpc==7.0.3
|
||||
|
@ -1,13 +1,13 @@
|
||||
"""Test the TP-Link Omada config flows."""
|
||||
from unittest.mock import patch
|
||||
|
||||
from tplink_omada_client import OmadaSite
|
||||
from tplink_omada_client.exceptions import (
|
||||
ConnectionFailed,
|
||||
LoginFailed,
|
||||
OmadaClientException,
|
||||
UnsupportedControllerVersion,
|
||||
)
|
||||
from tplink_omada_client.omadaclient import OmadaSite
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.tplink_omada.config_flow import (
|
||||
|
@ -2,9 +2,9 @@
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
from syrupy.assertion import SnapshotAssertion
|
||||
from tplink_omada_client import SwitchPortOverrides
|
||||
from tplink_omada_client.definitions import PoEMode
|
||||
from tplink_omada_client.devices import OmadaSwitch, OmadaSwitchPortDetails
|
||||
from tplink_omada_client.omadasiteclient import SwitchPortOverrides
|
||||
|
||||
from homeassistant.components import switch
|
||||
from homeassistant.const import ATTR_ENTITY_ID
|
||||
|
Loading…
x
Reference in New Issue
Block a user